]> pd.if.org Git - pccts/commitdiff
auto commit for import
authorTerence Parr <>
Mon, 14 Mar 1994 21:32:08 +0000 (15:32 -0600)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 26 Feb 2017 02:16:50 +0000 (20:16 -0600)
testcpp/6/test2.g [new file with mode: 0755]

diff --git a/testcpp/6/test2.g b/testcpp/6/test2.g
new file mode 100755 (executable)
index 0000000..724bfa8
--- /dev/null
@@ -0,0 +1,22 @@
+/* This is test2.g which is a copy of test.g and tests linking
+ * multiple scanners/parsers together; DLG-based scanner
+ */
+
+<<
+typedef ANTLRCommonToken ANTLRToken;
+>>
+
+#token "[\ \t\n]+"     <<skip();>>
+#token Eof "@"
+
+class B {
+
+e      :       IDENTIFIER NUMBER
+               <<fprintf(stderr, "text is %s,%s\n", $1->getText(), $2->getText());>>
+               Eof
+       ;
+
+}
+
+#token IDENTIFIER      "[a-z]+"
+#token NUMBER  "[0-9]+"