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
f5043fe701
Update index.ts
2026-01-13 16:06:45 -08:00
23c8d4822a
better naming
2026-01-05 13:38:11 -08:00
d1b16ce3e1
Simplify function completions in completions.ts
...
Removed the buildFunctionCompletion helper and inlined function completion creation for both scope and module methods. Updated module method extraction to use Object.keys for compatibility with the new module structure.
2026-01-05 13:34:18 -08:00
2c7508c2a4
Better edtior
2026-01-05 11:30:32 -08:00
04c2137fe2
Use isDebug
2026-01-05 11:30:02 -08:00
02e5ee45e8
Merge branch 'prettier' into editor-fixes
2025-12-17 10:17:17 -08:00
1452b2e00e
Formatted EVERYTHING with prettier
2025-12-17 09:58:02 -08:00
ff58f2b8ae
wip
2025-12-17 09:55:37 -08:00
491e37a7f8
$ can be in an identifier now
2025-12-10 13:57:13 -08:00
87cb01392a
remove lezer parser & grammar
2025-12-10 13:23:26 -08:00
e45a6d9bf7
turn not into a keyword
2025-12-10 11:57:58 -08:00
03a83abfbb
[str] add capitalize and titlecase
2025-12-10 11:26:04 -08:00
1a308eadf5
[prelude] add date functions
2025-12-10 11:12:13 -08:00
59b92714d2
add number, string, boolean. closes #51
2025-12-08 09:43:09 -08:00
4da3c5ac06
compat fix
2025-12-08 09:35:29 -08:00
31603d705a
beef up math.random
2025-12-08 09:05:17 -08:00
Chris Wanstrath
65119b720a
fix very minor issues
2025-12-06 21:15:28 -08:00
Chris Wanstrath
e1859c1bda
fix: parens can't be in words
2025-12-05 15:25:33 -08:00
Chris Wanstrath
07a42d9767
ignore trailing whitespace in dict key name
2025-12-03 15:52:20 -08:00
9b1890a3db
no need
2025-12-03 13:40:17 -08:00
21e7ed41af
restore errors, fancy printing
2025-12-03 13:40:04 -08:00
cb7cdaea62
trim keys in inspect
2025-12-02 17:11:39 -08:00
688181654e
enable [ a = true ]
2025-12-02 17:11:39 -08:00
04e14cd83e
wrong return type
2025-12-02 17:11:39 -08:00
b2d298ec6f
fix search/replace
2025-12-02 17:11:39 -08:00
Chris Wanstrath
5ad6125527
you too
2025-12-02 17:11:39 -08:00
Chris Wanstrath
f160093c4d
match lezer API
2025-12-02 17:11:39 -08:00
Chris Wanstrath
1ea130f8e0
pipes end expressions
2025-12-02 17:11:39 -08:00
Chris Wanstrath
ae9896c8a2
switch bin/shrimp to new parser
2025-12-02 17:11:39 -08:00
Chris Wanstrath
0d3f9867e6
we get globals for free now
2025-12-02 17:11:39 -08:00
Chris Wanstrath
cbc75f5ed7
use new parser in curlys
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
cc604bea49
fix dot.get + thing
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
1682a7ccb7
fix curly strings
2025-12-02 17:11:39 -08:00
Chris Wanstrath
0e92525b54
regex flags, bad regexs become Words
2025-12-02 17:11:39 -08:00
Chris Wanstrath
6a6675d30f
fix bitwise precedence
2025-12-02 17:11:39 -08:00
Chris Wanstrath
d003d65a15
disable errors... for now!
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
9e4471ad38
try to match lezer API more closely
2025-12-02 17:11:39 -08:00
Chris Wanstrath
3eac0a27a5
hwhitespace
2025-12-02 17:11:39 -08:00
Chris Wanstrath
e38e8d4f1e
minor
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
f13be7817c
list.has?
2025-11-10 07:34:16 -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