- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CommonTokenStream (0.34 sec)
-
platforms/documentation/docs/src/snippets/antlr/useAntlrPlugin/groovy/src/test/java/org/gradle/GrammarTest.java
import static org.junit.Assert.*; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.ANTLRStringStream; public class GrammarTest { @Test public void canUseGeneratedGrammar() throws Exception { ANTLRStringStream in = new ANTLRStringStream("1+2"); CalculatorLexer lexer = new CalculatorLexer(in); CommonTokenStream tokens = new CommonTokenStream(lexer);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 569 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/antlr/useAntlrPlugin/kotlin/src/test/java/org/gradle/GrammarTest.java
import static org.junit.Assert.*; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.ANTLRStringStream; public class GrammarTest { @Test public void canUseGeneratedGrammar() throws Exception { ANTLRStringStream in = new ANTLRStringStream("1+2"); CalculatorLexer lexer = new CalculatorLexer(in); CommonTokenStream tokens = new CommonTokenStream(lexer);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 569 bytes - Viewed (0) -
platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr3PluginIntegrationTest.groovy
TestLexer lexer = new TestLexer(new ANTLRFileStream(args[0])); CommonTokenStream tokens = new CommonTokenStream(lexer); TestParser parser = new TestParser(tokens); try { parser.list(); } catch (RecognitionException e) { e.printStackTrace(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 4.1K bytes - Viewed (0) -
platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr4PluginIntegrationTest.groovy
assertAntlrVersion(4) } void goodProgram() { file("grammar-user/src/main/java/Main.java") << """ import org.antlr.v4.runtime.ANTLRInputStream; import org.antlr.v4.runtime.CommonTokenStream; import java.io.IOException; import java.io.StringReader; import org.acme.TestLexer; import org.acme.TestParser; public class Main {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 4.7K bytes - Viewed (0)