Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TestLexer (0.2 sec)

  1. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr4RelocationIntegrationTest.groovy

        }
    
        @Override
        protected extractResultsFrom(TestFile projectDir) {
            [
                "org/acme/Test.tokens",
                "org/acme/TestBaseListener.java",
                "org/acme/TestLexer.java",
                "org/acme/TestLexer.tokens",
                "org/acme/TestListener.java",
                "org/acme/TestParser.java",
            ].collect { projectDir.file("build/generated-src/antlr/main/$it").text }.join("\n")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr4PluginIntegrationTest.groovy

            import java.io.IOException;
            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)
  3. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr3PluginIntegrationTest.groovy

                public class Main {
                    public static void main(String[] args) throws IOException {
                        TestLexer lexer = new TestLexer(new ANTLRFileStream(args[0]));
                        CommonTokenStream tokens = new CommonTokenStream(lexer);
                        TestParser parser = new TestParser(tokens);
                        try {
                            parser.list();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. 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()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    func TestSetIsEmpty(t *testing.T) {
    	if !(Set{}).AsSelector().Empty() {
    		t.Errorf("Empty set should be empty")
    	}
    	if !(NewSelector()).Empty() {
    		t.Errorf("Nil Selector should be empty")
    	}
    }
    
    func TestLexer(t *testing.T) {
    	testcases := []struct {
    		s string
    		t Token
    	}{
    		{"", EndOfStringToken},
    		{",", CommaToken},
    		{"notin", NotInToken},
    		{"in", InToken},
    		{"=", EqualsToken},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
Back to top