Skip to content

Commit

Permalink
test & typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoncoder047 committed Mar 29, 2024
1 parent 574a2b6 commit b6fef74
Show file tree
Hide file tree
Showing 4 changed files with 1,210 additions and 1,191 deletions.
5 changes: 4 additions & 1 deletion dev_notes/syntax_ideas.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pattern (bar (the):? [x is Foo]) precedence?
## --> captures x if it is an instance of Foo (is)
## or if calling Foo with x returns true (matches)

[is (Foo)] ## --> captures but doesn't bind
[is (Foo)] ## --> matches but doesn't bind

[is Space] ## special because implicit spaces don't match newlines, this explicit space does
```
Expand Down Expand Up @@ -93,4 +93,7 @@ await [coro is Coroutine] ## waits for the coroutine to finish and gets the retu
callcc[is Space][body is Block]
## interestingly enough each function callframe is implicitly wrapped in this to implement "return"
## and every loop is wrapped in TWO of these to implement "break" and "continue"

let [varname is Symbol] = [expression]
## defines variables in the current scope
```
10 changes: 5 additions & 5 deletions pickle_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ const char* test = R"=(
## #### block comment '
lambda x
foo 123
bar 456
foo123]
123foo123]
)=";

Expand All @@ -51,7 +51,7 @@ int main() {
vm.start_thread();
vm.push_inst("test_test", "error", vm.string("from error handler"));
vm.push_inst("test_test", nil, vm.string("output result"));
vm.push_inst("parse", nil, vm.string("normal"));
vm.push_inst("parse");
vm.push_data(vm.integer(42));
vm.push_data(st);
vm.push_data(vm.integer(42));
Expand Down
6 changes: 3 additions & 3 deletions test/out64.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b6fef74

Please sign in to comment.