From fca471000437f6fc8c36920cce1e667017b56808 Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Wed, 31 Oct 2012 12:46:11 -0700 Subject: [PATCH] alter tests --- tool/playground/JavaLR.g4 | 2 +- tool/playground/TestJava.java | 1 - tool/playground/TestJavaLR.java | 1 - tool/playground/TestYang.java | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tool/playground/JavaLR.g4 b/tool/playground/JavaLR.g4 index d8344c50e..e27333a9e 100644 --- a/tool/playground/JavaLR.g4 +++ b/tool/playground/JavaLR.g4 @@ -852,7 +852,7 @@ WS : (' '|'\r'|'\t'|'\u000C'|'\n')+ {setChannel(HIDDEN);} ; COMMENT - : '/*' .* '*/' {setChannel(HIDDEN);} + : '/*' .*? '*/' {setChannel(HIDDEN);} ; LINE_COMMENT diff --git a/tool/playground/TestJava.java b/tool/playground/TestJava.java index f2d39a118..b4151d94b 100644 --- a/tool/playground/TestJava.java +++ b/tool/playground/TestJava.java @@ -51,7 +51,6 @@ class TestJava { System.out.println("Total time " + (stop - start) + "ms."); System.out.println("finished parsing OK"); - System.out.println(LexerATNSimulator.ATN_failover+" lexer failovers"); System.out.println(LexerATNSimulator.match_calls+" lexer match calls"); System.out.println(ParserATNSimulator.ATN_failover+" parser failovers"); System.out.println(ParserATNSimulator.predict_calls +" parser predict calls"); diff --git a/tool/playground/TestJavaLR.java b/tool/playground/TestJavaLR.java index fe2d546e7..1964deb82 100644 --- a/tool/playground/TestJavaLR.java +++ b/tool/playground/TestJavaLR.java @@ -192,7 +192,6 @@ class TestJavaLR { System.out.println("Total lexer+parser time " + time + "ms."); System.out.println("finished parsing OK"); - System.out.println(LexerATNSimulator.ATN_failover+" lexer failovers"); System.out.println(LexerATNSimulator.match_calls+" lexer match calls"); System.out.println(ParserATNSimulator.ATN_failover+" parser failovers"); System.out.println(ParserATNSimulator.predict_calls +" parser predict calls"); diff --git a/tool/playground/TestYang.java b/tool/playground/TestYang.java index dbf4860e4..c216ccc5b 100644 --- a/tool/playground/TestYang.java +++ b/tool/playground/TestYang.java @@ -32,7 +32,6 @@ class TestYang { System.out.println("Total time " + (stop - start) + "ms."); System.out.println("finished parsing OK"); - System.out.println(LexerATNSimulator.ATN_failover+" lexer failovers"); System.out.println(LexerATNSimulator.match_calls+" lexer match calls"); System.out.println(ParserATNSimulator.ATN_failover+" parser failovers"); System.out.println(ParserATNSimulator.predict_calls +" parser predict calls");