diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-15 16:36:21 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-15 16:36:38 -0700 |
| commit | 01aa199f7acfe9af57c5970793259b36e060fd11 (patch) | |
| tree | 0af9fd009d820053f83dd60eed862886bfb3eb5c /examples/how_do_i.nom | |
| parent | 28cd9ae0b7a09d8f2cd0cd929f1ebdce4b081502 (diff) | |
Adding support for coroutines, and cleaning up comment syntax.
Diffstat (limited to 'examples/how_do_i.nom')
| -rw-r--r-- | examples/how_do_i.nom | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom index f7b5c0b..0ffee38 100644 --- a/examples/how_do_i.nom +++ b/examples/how_do_i.nom @@ -271,8 +271,10 @@ immediately \(%body as lua statements) end - # Constants can be defined as macros (but they need to be parenthesized when invoked) + # Constants can be defined as macros parse [TWENTY] as: 20 + # When they're invoked, they'll need parentheses just like a function call + parse [TWENTY ONE] as: 21 if (1 > (TWENTY)) is untrue say "Nomsu parsing macros work!" |
