Commit Graph

152 Commits

Author SHA1 Message Date
Chris Wanstrath
20e2dd3b31 update reef 2025-10-28 13:06:54 -07:00
bbc9316074 Merge pull request 'Functions returned by parens expr can be called' (#10) from word-to-your-mother into main
Reviewed-on: #10
2025-10-27 23:08:54 +00:00
4a2e1f094a Merge pull request 'Remove ReefVM submodule and instead depend on the git repo as a package.' (#11) from reef-git-package into main
Reviewed-on: #11
2025-10-27 23:08:39 +00:00
Chris Wanstrath
825487f2e0 Remove ReefVM submodule and instead depend on the git repo as a package. 2025-10-27 15:24:48 -07:00
Chris Wanstrath
0788f830bc update git submodule URL 2025-10-27 15:20:31 -07:00
c032192d61 Functions returned by parens expr can be called 2025-10-27 15:17:38 -07:00
c6c2646366 Do do 2025-10-27 14:50:54 -07:00
71fdafa72d Merge pull request 'DotGet function calls' (#9) from dotget-function-calls into main
Reviewed-on: #9
2025-10-27 19:46:06 +00:00
318142dfbb Update shrimp.ts 2025-10-27 12:45:59 -07:00
ffdd666685 Merge remote-tracking branch 'origin/main' into dotget-function-calls 2025-10-27 12:45:53 -07:00
0fc1f9f895 Merge pull request 'allow more unicode in variable names' (#8) from more-unicode-variable-names into main
Reviewed-on: #8
2025-10-27 19:43:55 +00:00
cdcaf5c9d3 Merge pull request 'failing test for multiline function' (#6) from multiline-fn into main
Reviewed-on: #6
2025-10-27 19:37:40 +00:00
6c8c07e869 Update shrimp.ts 2025-10-27 12:36:29 -07:00
2fcd840493 Merge remote-tracking branch 'origin/main' into multiline-fn 2025-10-27 12:36:12 -07:00
28fab1235c Works with blank lines 2025-10-27 12:07:13 -07:00
cbd3fe6315 Merge pull request 'failing single line if test' (#5) from single-line-if into main
Reviewed-on: #5
2025-10-27 18:31:48 +00:00
6e432dd7a1 Made it work 2025-10-27 11:30:49 -07:00
050acbfaeb Merge remote-tracking branch 'origin/main' into single-line-if 2025-10-27 10:54:33 -07:00
34d1b8b998 Merge pull request 'Add # comments' (#4) from comments into main
Reviewed-on: #4
2025-10-27 17:50:29 +00:00
219142140c compile dot number too 2025-10-26 22:32:07 -07:00
972fd25fda update params scope detection, add array.1 (dotget array indices) 2025-10-26 22:23:46 -07:00
abd7d2e43b DotGet function calls 2025-10-26 16:28:56 -07:00
7cf7ac3703 allow more unicode in variable names 2025-10-26 13:03:17 -07:00
299ad2c9a9 failing test for multiline function 2025-10-25 20:15:55 -07:00
e4100c7d89 failing single line if test 2025-10-25 19:51:57 -07:00
dba8430d9a Add # comments 2025-10-25 19:18:27 -07:00
611c2a4c8a Merge pull request 'Shrimp CLI' (#3) from cli into main
Reviewed-on: #3
2025-10-26 00:25:09 +00:00
e3b941d5f2 Merge pull request 'bun run repl' (#2) from repl into main
Reviewed-on: #2
2025-10-26 00:24:44 +00:00
035ec47885 allow func defs in parens 2025-10-25 17:22:26 -07:00
c964743420 shrimp cli 2025-10-25 17:15:17 -07:00
0ff0dd5380 ./bin/repl <file> 2025-10-25 15:52:11 -07:00
e95c8e5018 update submodule 2025-10-25 10:42:59 -07:00
ad1d7266b8 /save 2025-10-25 10:42:49 -07:00
664ba82199 add /bytecode 2025-10-25 10:32:36 -07:00
d7f613f2e4 not double quotes 2025-10-25 10:26:18 -07:00
5988e75939 bun run repl 2025-10-25 10:21:00 -07:00
5234ad9a73 better stuff 2025-10-25 09:53:45 -07:00
d306d58b2f now it is do 2025-10-24 14:04:50 -07:00
7077762738 great stuff 2025-10-24 14:02:29 -07:00
66671970e0 i did things 2025-10-24 10:17:06 -07:00
82cd199ed8 wip 2025-10-22 11:23:11 -07:00
8da3c1674e Merge pull request 'dot-get' (#1) from dot-get into main
Reviewed-on: #1
2025-10-19 17:26:55 +00:00
73a60e49f3 Delete parser-architecture.md 2025-10-19 10:26:41 -07:00
0f7d3126a2 workin' 2025-10-19 10:18:52 -07:00
78ae96fc72 wip 2025-10-17 21:13:49 -07:00
b0d5a7f50c refactor(scope): add helper methods to ScopeContext for cleaner code 2025-10-17 19:38:32 -07:00
290270dc7b docs: add comprehensive parser architecture documentation 2025-10-17 19:15:43 -07:00
4619791b7d test: update test expectations for AssignableIdentifier token
Updated all parser and compiler tests to expect AssignableIdentifier
tokens in Assign and Params contexts instead of Identifier. Also
skipped pre-existing failing native functions test.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 19:10:40 -07:00
aee9fa0747 refactor(scope): simplify trackScope to only track AssignableIdentifier
- Update trackScope ContextTracker to use ScopeContext wrapper
- Simplify shift() to only capture AssignableIdentifier tokens
- Simplify reduce() to handle only Assign, Params, and FunctionDef
- Update hash function to use hashScope helper
- Export ScopeContext class for use in tokenizer
- Update tokenizer to access scope via ScopeContext.scope

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 18:43:11 -07:00
7de1682e91 feat(scope): add ScopeContext wrapper for pending identifiers
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 18:39:34 -07:00