summaryrefslogtreecommitdiff
path: root/test/prints.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/prints.lm')
-rw-r--r--test/prints.lm17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/prints.lm b/test/prints.lm
new file mode 100644
index 0000000..ad08220
--- /dev/null
+++ b/test/prints.lm
@@ -0,0 +1,17 @@
+##### LM #####
+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