Commit Graph

81 Commits

Author SHA1 Message Date
21e7ed41af restore errors, fancy printing 2025-12-03 13:40:04 -08:00
688181654e enable [ a = true ] 2025-12-02 17:11:39 -08:00
Chris Wanstrath
a836591854 keywords are magical 2025-12-02 17:11:39 -08:00
Chris Wanstrath
d0005d9ccd fix | 2025-12-02 17:11:39 -08:00
Chris Wanstrath
2c2b277b29 throw takes an expression 2025-12-02 17:11:39 -08:00
Chris Wanstrath
579d755205 make more compiler tests pass 2025-12-02 17:11:39 -08:00
Chris Wanstrath
566beb87ef do allowed in arg/dict values 2025-12-02 17:11:39 -08:00
Chris Wanstrath
3eac0a27a5 hwhitespace 2025-12-02 17:11:39 -08:00
abd78108c8 new parser(-ish) 2025-12-02 17:11:39 -08:00
ae46988219 sorry lezer... 2025-12-02 17:11:39 -08:00
c4368f24fc allow lines to start with | (pipes) 2025-11-10 07:15:41 -08:00
dcf94296fa compile spacey function calls too 2025-11-10 07:14:09 -08:00
c244435ae2 add $. w/ shrimp runtime info 2025-11-10 01:04:13 -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
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
63ee57e7f0 curly -> Curly 2025-11-08 16:13:39 -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
7e69356f79 allow _ in numbers (10_000_000) 2025-11-08 16:00:25 -08:00
45f31d0678 allow newlines in (some) parens expressions 2025-11-08 11:26:46 -08:00
4590d66105 '#comments are comments too, but not hash#in#words' 2025-11-08 08:09:58 -08:00
Chris Wanstrath
890eb811b9 pipe atoms/literals to functions 2025-11-07 15:17:29 -08:00
b0f6c75427 Merge remote-tracking branch 'origin/main' into comments-in-tree 2025-11-05 16:18:58 -08:00
5f46346213 allow if expr in parens 2025-11-05 13:18:54 -08:00
6112d7e5a2 allow function calls in if/else if test expressions 2025-11-05 13:06:46 -08:00
653ff5df10 Fix them tests 2025-11-05 12:40:31 -08:00
f57b1c985e NBD 2025-11-05 10:28:57 -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
950eef0e69 no more single vs multiline blocks 2025-11-03 20:07:34 -08:00
dc557deb40 Collapse all blocks into SingleLineBlock and MultiLineBlock 2025-11-03 19:55:41 -08:00
5f4bf60062 while loops 2025-11-03 19:29:19 -08:00
1791e5a6c7 parse defaults 2025-11-02 14:04:32 -08:00
f14013aa55 allow - in named args 2025-11-01 07:50:21 -07: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
f31be80bb0 fix dotget 2025-10-29 21:37:45 -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
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
fd197a2dfc fix or/and chaining 2025-10-29 11:14:11 -07:00
ced190488a Add % operator 2025-10-29 10:58:48 -07:00