aboutsummaryrefslogtreecommitdiff
path: root/examples/parser_tests.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-18 22:41:50 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-18 22:41:50 -0700
commit2c4acdfe67e05fba88d4c48509c8767d2dce358b (patch)
treed72f52122d4b372d832c69bd9a21d0da34323de5 /examples/parser_tests.nom
parent15886aa57978cbd236ff6ac3bc16adf0941ca299 (diff)
More major overhaulage.
Diffstat (limited to 'examples/parser_tests.nom')
-rw-r--r--examples/parser_tests.nom12
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"