Commit Graph

61 Commits

Author SHA1 Message Date
248a53c887 Fix underscore handling in nested pipes and non-function receivers
Add pipeVarStack to track pipe variables for nested pipes, allowing _
to correctly reference the innermost piped value. Also enable piping
to array literals and parenthesized expressions (e.g., `5 | [_ _ _]`).
2026-01-27 19:12:48 -08:00
1452b2e00e Formatted EVERYTHING with prettier 2025-12-17 09:58:02 -08:00
491e37a7f8 $ can be in an identifier now 2025-12-10 13:57:13 -08:00
Chris Wanstrath
07a42d9767 ignore trailing whitespace in dict key name 2025-12-03 15:52:20 -08:00
Chris Wanstrath
3eac0a27a5 hwhitespace 2025-12-02 17:11:39 -08:00
c4368f24fc allow lines to start with | (pipes) 2025-11-10 07:15:41 -08:00
b400f48676 Chained DotGet, meta.script.name. Doesn't work for numbers (row.2.1) yet 2025-11-10 01:04:13 -08:00
793565cafa JUMP relative #s are broken in array, use labels 2025-11-10 01:04:03 -08:00
970ceeb8b0 import dict only=something 2025-11-09 20:07:22 -08:00
e2f5024a4c add import keyword for importing keys of dicts into local scope 2025-11-09 20:07:21 -08:00
ba5ce0a88c octal numbers 0o644 2025-11-09 17:43:32 -08:00
69bbe17992 "add double quoted strings" 2025-11-08 16:14:08 -08:00
238af9affc fix edge case 2025-11-08 16:13:40 -08:00
a6c283759d interpolation in { curly strings } 2025-11-08 16:13:40 -08:00
503ca41155 { curly strings } 2025-11-08 16:13:28 -08:00
019f7d84b1 Add ?? and ??= operators 2025-11-08 16:12:20 -08:00
7bbf43a725 bitwise operators 2025-11-08 16:10:13 -08:00
c741cfee51 hex and binary numbers 2025-11-08 16:05:28 -08:00
fe6f54b402 Merge pull request 'Passing null to a function triggers default value' (#41) from null-triggers-default-values into main
Reviewed-on: #41
2025-11-09 00:02:27 +00:00
0d1dce4868 fix calling no-arg dotget functions 2025-11-08 16:01:40 -08:00
51f67ac908 Passing null to a function triggers default value 2025-11-08 10:53:54 -08:00
Chris Wanstrath
890eb811b9 pipe atoms/literals to functions 2025-11-07 15:17:29 -08:00
62e42328e1 fix test issues 2025-11-06 21:34:35 -08:00
ab12212df2 Make the extension know about the prelude 2025-11-06 09:23:18 -08:00
653ff5df10 Fix them tests 2025-11-05 12:40:31 -08:00
67e0db090b maybe better 2025-11-03 20:25:44 -08:00
24e0b49679 it's alive 2025-11-03 20:25:44 -08:00
7756306e1d insanity 2025-11-03 20:25:44 -08:00
7bcd582dc6 what have i done 2025-11-03 20:25:42 -08:00
e68624b608 elseif -> else if 2025-11-03 20:16:15 -08:00
f1eaafee19 just in case 2025-11-03 20:11:59 -08:00
5f4bf60062 while loops 2025-11-03 19:29:19 -08:00
fa034d4bd4 only constant values can be defaults 2025-11-02 16:52:20 -08:00
8addb77e90 make defaults work, like magic 2025-11-02 16:34:59 -08:00
78849c7d36 Merge remote-tracking branch 'origin/main' into array-destructuring 2025-10-31 10:08:03 -07:00
0d73789a25 Merge remote-tracking branch 'origin/main' into compound-assignment 2025-10-31 10:06:20 -07:00
789481f4ef [a b] = [1 2 3] 2025-10-29 19:13:03 -07:00
bc0684185a Add += and friends 2025-10-29 15:49:59 -07:00
e60e3184fa less chatty 2025-10-29 15:37:39 -07:00
4f961d3039 test native exceptions 2025-10-29 15:29:07 -07:00
9bc514a782 implicit function-level try blocks 2025-10-29 14:51:50 -07:00
701ca98401 try/catch/throw/finally 2025-10-29 14:22:57 -07:00
1053a5ff52 Make dot-get work in the compiler AND with parens exprs 2025-10-29 13:19:47 -07:00
34305b473e switch back to using == 2025-10-29 11:18:47 -07:00
ced190488a Add % operator 2025-10-29 10:58:48 -07:00
8112515278 [ = ] 2025-10-28 21:18:24 -07:00
982054eb54 [a=1 b=2 c=3] and [=] (empty dict) 2025-10-28 21:10:33 -07:00
34c1177636 more tests 2025-10-28 17:03:41 -07:00
339c09eb8c compile array literals 2025-10-28 16:47:33 -07:00
2fcd840493 Merge remote-tracking branch 'origin/main' into multiline-fn 2025-10-27 12:36:12 -07:00