summaryrefslogtreecommitdiff
path: root/test/colm.d/prints.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/colm.d/prints.lm')
-rw-r--r--test/colm.d/prints.lm16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/colm.d/prints.lm b/test/colm.d/prints.lm
new file mode 100644
index 00000000..c4a38ca7
--- /dev/null
+++ b/test/colm.d/prints.lm
@@ -0,0 +1,16 @@
+lex
+ token word /[a-z]+/
+ ignore /[\t\n ]+/
+end
+
+def start
+ [word*]
+
+parse Start: start[stdin]
+
+prints( stderr, 'fd stderr: ', ^Start, '\n' )
+prints( stdout, 'fd stdout: ', ^Start, '\n' )
+##### IN #####
+a b c
+##### EXP #####
+fd stdout: a b c