summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-04-14 12:19:57 -0400
committerAdrian Thurston <thurston@complang.org>2013-04-14 12:19:57 -0400
commitf62577ebc86ee021f773c766c462e865bc86dc2d (patch)
tree4bbd0293f777d4ae108f458756b0fc1ced4963bf /test
parent0802c2b4ef354e0016a7c35f755b4ed17251f234 (diff)
downloadcolm-f62577ebc86ee021f773c766c462e865bc86dc2d.tar.gz
eliminated the original send syntax
Diffstat (limited to 'test')
-rw-r--r--test/order1.lm7
-rw-r--r--test/order2.lm9
2 files changed, 9 insertions, 7 deletions
diff --git a/test/order1.lm b/test/order1.lm
index eb3c7859..fa1843be 100644
--- a/test/order1.lm
+++ b/test/order1.lm
@@ -88,12 +88,13 @@ Output: output Output = construct output []
# Take off the leading C from the input file and send it out.
match P [C: c '%%' protocol*]
-Output << [$C]
-Output <<
+send Output [$C]
+send Output
"#include <assert.h>
"
+ eos
-print( Output.finish() )
+print( Output.tree )
##### IN #####
#include "some_header.h"
diff --git a/test/order2.lm b/test/order2.lm
index 9a8da921..5217c740 100644
--- a/test/order2.lm
+++ b/test/order2.lm
@@ -75,7 +75,7 @@ def protocol
def program
[c '%%' protocol*]
-alias output accum<c>
+alias output parser<c>
def port
Port: int
@@ -90,11 +90,12 @@ Output: output Output = construct output []
# Take off the leading C from the input file and send it out.
match P [C: c '%%' protocol*]
-Output << [$C]
-Output <<
+send Output [
+ $C
"#include <assert.h>
"
-print( Output.finish() )
+ ] eos
+print( Output.tree )
##### IN #####
#include "some_header.h"