Risky Business: omit do when passing a 0 arg function to a function #22

Merged
probablycorey merged 13 commits from risky-business into main 2025-11-04 15:19:54 +00:00
Showing only changes of commit 70ac5544a9 - Show all commits

View File

@ -12,7 +12,7 @@ Go to http://localhost:3000 to try out the playground.
tail log.txt lines=50
name = "Shrimp"
greet = fn person: echo "Hello" person
greet = do person: echo "Hello" person
result = tail log.txt lines=10
@ -33,7 +33,7 @@ Go to http://localhost:3000 to try out the playground.
## Architecture
**parser/** - Lezer grammar and tokenizers that parse Shrimp code into syntax trees
**editor/** - CodeMirror integration with syntax highlighting and language support
**editor/** - CodeMirror integration with syntax highlighting and language support
**compiler/** - Transforms syntax trees into ReefVM bytecode for execution
The flow: Shrimp source → parser (CST) → compiler (bytecode) → ReefVM (execution)