- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TestParser (5.8 sec)
-
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
import java.io.StringReader; import org.acme.TestLexer; import org.acme.TestParser; public class Main { public static void main(String[] args) throws IOException { TestLexer l = new TestLexer(new ANTLRInputStream(new StringReader("test"))); TestParser p = new TestParser(new CommonTokenStream(l)); } } """ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 4.7K bytes - Viewed (0) -
platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr3RelocationIntegrationTest.groovy
""" } @Override protected extractResultsFrom(TestFile projectDir) { def result = [ "Test.tokens", "org/acme/test/TestLexer.java", "org/acme/test/TestParser.java", ] .collect { projectDir.file("build/generated-src/antlr/main/$it").text.split(/\n/) } .flatten() .findAll { !(it =~ "// \\\$ANTLR") } .join("\n") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr4RelocationIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/policy/reader_test.go
Resources: []string{"clusterroles", "clusterrolebindings"}, }}, Namespaces: []string{"default", "kube-system"}, }, { Level: audit.LevelMetadata, }}, } func TestParser(t *testing.T) { policyDef := strings.Replace(policyDefPattern, "{version}", "v1", 1) f, err := writePolicy(t, policyDef) require.NoError(t, err) defer os.Remove(f) policy, err := LoadPolicyFromFile(f)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4.2K bytes - Viewed (0)