diff options
author | Adrian Thurston <thurston@complang.org> | 2012-08-16 22:18:33 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-08-16 22:18:33 -0400 |
commit | 81f6a132e3f2da57a2043af8937d1b8021250ed3 (patch) | |
tree | 8af43a730c9d39e25c5e9ed9d97e96389176152b /test/accum1.lm | |
parent | a11b02bcaec0e381a18f2e6ec7a1181108ffbc9e (diff) | |
download | colm-81f6a132e3f2da57a2043af8937d1b8021250ed3.tar.gz |
use of the new parse syntax
Diffstat (limited to 'test/accum1.lm')
-rw-r--r-- | test/accum1.lm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/accum1.lm b/test/accum1.lm index 186125a3..98d56786 100644 --- a/test/accum1.lm +++ b/test/accum1.lm @@ -12,11 +12,12 @@ def item def start [item*] -Input: start = parse start( stdin ) +parse Input: start[ stdin ] +InputTree: start = Input.tree cons Output: accum<start> [] -for Id: id in Input { +for Id: id in InputTree { send Output "( [^Id] ) } |