diff options
Diffstat (limited to 'test/namespace1.lm')
-rw-r--r-- | test/namespace1.lm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/namespace1.lm b/test/namespace1.lm new file mode 100644 index 0000000..b31b453 --- /dev/null +++ b/test/namespace1.lm @@ -0,0 +1,24 @@ +##### LM ##### +namespace n1 + + lex + token id / 'a' .. 'z' / + ignore / '\n' | '\t' | ' ' / + end + + def start + [id*] +end + +parse P: n1::start[stdin] +print( P ) +##### IN ##### +a + b + c +d +##### EXP ##### +a + b + c +d |