From 01aa199f7acfe9af57c5970793259b36e060fd11 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 May 2018 16:36:21 -0700 Subject: Adding support for coroutines, and cleaning up comment syntax. --- examples/how_do_i.nom | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') 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!" -- cgit v1.2.3