summaryrefslogtreecommitdiff
path: root/test/accum1.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-05-22 15:12:20 +0000
committerAdrian Thurston <thurston@complang.org>2012-05-22 15:12:20 +0000
commit82ebe66edf90112f0370dde9460aa86dad3eb813 (patch)
tree2a3abe6dd94a5e4f796d15f2ef68dafb7bccbae9 /test/accum1.lm
parent4f6c820a6374239e11c441ce061880958ff6d679 (diff)
downloadcolm-82ebe66edf90112f0370dde9460aa86dad3eb813.tar.gz
added trim control flag to print code, auto-trimming all colm print calls
The print implemenation now takes a trim flag. The colm print function now sets this flag by default. This is a change to the colm language back to 0.5 semantics. The $ conversion uses this flag too (also 0.5 semantics), in the previous commit it issued a tree trim operation. The % operation gives a string conversion without triming.
Diffstat (limited to 'test/accum1.lm')
-rw-r--r--test/accum1.lm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/accum1.lm b/test/accum1.lm
index 716bb20a..186125a3 100644
--- a/test/accum1.lm
+++ b/test/accum1.lm
@@ -23,4 +23,4 @@ for Id: id in Input {
S: start = Output()
-print( S )
+print( S '\n' )