From 7bb0907b984eff615dc66a1873eee9cfc533bb57 Mon Sep 17 00:00:00 2001 From: Terence Parr <> Date: Mon, 14 Mar 1994 15:32:08 -0600 Subject: [PATCH] auto commit for import --- testcpp/6/test2.g | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 testcpp/6/test2.g 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]+" -- 2.40.0