From: Terence Parr <> Date: Mon, 14 Mar 1994 21:32:08 +0000 (-0600) Subject: auto commit for import X-Git-Url: https://pd.if.org/git/?p=pccts;a=commitdiff_plain;h=7bb0907b984eff615dc66a1873eee9cfc533bb57 auto commit for import --- diff --git a/testcpp/6/test2.g b/testcpp/6/test2.g new file mode 100755 index 0000000..724bfa8 --- /dev/null +++ b/testcpp/6/test2.g @@ -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]+" <> +#token Eof "@" + +class B { + +e : IDENTIFIER NUMBER + <getText(), $2->getText());>> + Eof + ; + +} + +#token IDENTIFIER "[a-z]+" +#token NUMBER "[0-9]+"