Skip to content

Commit b6fef74

Browse files
test & typos
1 parent 574a2b6 commit b6fef74

File tree

4 files changed

+1210
-1191
lines changed

4 files changed

+1210
-1191
lines changed

dev_notes/syntax_ideas.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pattern (bar (the):? [x is Foo]) precedence?
5050
## --> captures x if it is an instance of Foo (is)
5151
## or if calling Foo with x returns true (matches)
5252

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

5555
[is Space] ## special because implicit spaces don't match newlines, this explicit space does
5656
```
@@ -93,4 +93,7 @@ await [coro is Coroutine] ## waits for the coroutine to finish and gets the retu
9393
callcc[is Space][body is Block]
9494
## interestingly enough each function callframe is implicitly wrapped in this to implement "return"
9595
## and every loop is wrapped in TWO of these to implement "break" and "continue"
96+
97+
let [varname is Symbol] = [expression]
98+
## defines variables in the current scope
9699
```

pickle_test.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ const char* test = R"=(
2525
## #### block comment '
2626
2727
28+
lambda x
29+
foo 123
30+
bar 456
2831
2932
3033
3134
3235
3336
34-
35-
36-
37-
foo123]
37+
123foo123]
3838
3939
)=";
4040

@@ -51,7 +51,7 @@ int main() {
5151
vm.start_thread();
5252
vm.push_inst("test_test", "error", vm.string("from error handler"));
5353
vm.push_inst("test_test", nil, vm.string("output result"));
54-
vm.push_inst("parse", nil, vm.string("normal"));
54+
vm.push_inst("parse");
5555
vm.push_data(vm.integer(42));
5656
vm.push_data(st);
5757
vm.push_data(vm.integer(42));

test/out64.txt

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)