summaryrefslogtreecommitdiff
path: root/test/accum2.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/accum2.lm')
-rw-r--r--test/accum2.lm49
1 files changed, 25 insertions, 24 deletions
diff --git a/test/accum2.lm b/test/accum2.lm
index 7f6bb2cb..58729f91 100644
--- a/test/accum2.lm
+++ b/test/accum2.lm
@@ -1,28 +1,29 @@
context ctx
-{
- i: int
- j: int
- k: int
-
- lex
- ignore /space+/
- literal '*', '(', ')'
- token id /[a-zA-Z_]+/
- end
-
- def foo [id]
-
- def item
- [id]
- | [foo]
- | ['(' item* ')']
- {
- i = 0
- }
-
- def start
- [item*]
-}
+
+i: int
+j: int
+k: int
+
+lex
+ ignore /space+/
+ literal '*', '(', ')'
+ token id /[a-zA-Z_]+/
+end
+
+def foo [id]
+
+def item
+ [id]
+| [foo]
+| ['(' item* ')']
+ {
+ i = 0
+ }
+
+def start
+ [item*]
+
+end ctx
cons SP: parser<ctx::start> []