diff options
Diffstat (limited to 'examples/parser_tests.nom')
| -rw-r--r-- | examples/parser_tests.nom | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/parser_tests.nom b/examples/parser_tests.nom index 000b8de..81608b7 100644 --- a/examples/parser_tests.nom +++ b/examples/parser_tests.nom @@ -9,21 +9,23 @@ test: say (4) ..yields ".." | 4 test: - rule "fart" =: say "poot" + rule: fart ..=: say "poot" ..yields ".." |Call [rule % = %]: - | "fart" + | Thunk: + | Call [fart]! | Thunk: | Call [say %]: | "poot" test: - rule "doublefart": + rule: doublefart ..=: say "poot" say "poot" ..yields ".." - |Call [rule % %]: - | "doublefart" + |Call [rule % = %]: + | Thunk: + | Call [doublefart]! | Thunk: | Call [say %]: | "poot" |
