From f62577ebc86ee021f773c766c462e865bc86dc2d Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sun, 14 Apr 2013 12:19:57 -0400 Subject: eliminated the original send syntax --- test/order1.lm | 7 ++++--- test/order2.lm | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'test') 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 " + 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 +alias output parser 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 " -print( Output.finish() ) + ] eos +print( Output.tree ) ##### IN ##### #include "some_header.h" -- cgit v1.2.1