Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 326 for atom (0.21 sec)

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

                options {
                    buildAST = true;
                }
    
                expr:   mexpr (PLUS^ mexpr)* SEMI!
                    ;
    
                mexpr
                    :   atom (STAR^ atom)*
                    ;
    
                atom:   INT
                    ;"""
    
            file("grammar-builder/src/main/antlr/AnotherGrammar.g") << """
                header {
                    package org.acme;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. platforms/software/antlr/src/test/groovy/org/gradle/api/plugins/antlr/internal/antlr2/MetadataExtracterTest.groovy

            options {
                buildAST = true;
            }
    
            expr:   mexpr (PLUS^ mexpr)* SEMI!
                ;
    
            mexpr
                :   atom (STAR^ atom)*
                ;
    
            atom:   INT
                ;"""
            expect:
            "org.acme" == new MetadataExtracter().getPackageName(new StringReader(grammar))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/dist/testjson.go

    		dec.UseNumber()
    		val, err := decodeJSONValue(dec)
    		if err == nil && val.atom == json.Delim('{') {
    			// Rewrite the Package field.
    			found := false
    			for i := 0; i < len(val.seq); i += 2 {
    				if val.seq[i].atom == "Package" {
    					if pkg, ok := val.seq[i+1].atom.(string); ok {
    						val.seq[i+1].atom = pkg + ":" + f.variant
    						found = true
    						break
    					}
    				}
    			}
    			if found {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/net/mail/message.go

    		return "", errors.New("mail: invalid string")
    	}
    	atom, p.s = p.s[:i], p.s[i:]
    	if !permissive {
    		if strings.HasPrefix(atom, ".") {
    			return "", errors.New("mail: leading dot in atom")
    		}
    		if strings.Contains(atom, "..") {
    			return "", errors.New("mail: double dot in atom")
    		}
    		if strings.HasSuffix(atom, ".") {
    			return "", errors.New("mail: trailing dot in atom")
    		}
    	}
    	return atom, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr2RelocationIntegrationTest.groovy

            options {
                buildAST = true;
            }
    
            expr:   mexpr (PLUS^ mexpr)* SEMI!
            ;
    
            mexpr
            :   atom (STAR^ atom)*
            ;
    
            atom:   INT
            ;"""
            projectDir.file("build.gradle") << """
                apply plugin: "antlr"
    
                ${mavenCentralRepository()}
            """
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/AntlrPluginIntegrationTest.groovy

            options {
                buildAST = true;
            }
    
            expr:   mexpr (PLUS^ mexpr)* SEMI!
            ;
    
            mexpr
            :   atom (STAR^ atom)*
            ;
    
            atom:   INT
            ;"""
    
            when:
            succeeds("generateGrammarSource")
    
            then:
            file("build/generated-src/antlr/main/TestGrammar.java").exists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertEquals("text", MediaType.parse("text/plain").type());
        assertEquals("application", MediaType.parse("application/atom+xml; charset=utf-8").type());
      }
    
      public void testGetSubtype() {
        assertEquals("plain", MediaType.parse("text/plain").subtype());
        assertEquals("atom+xml", MediaType.parse("application/atom+xml; charset=utf-8").subtype());
      }
    
      private static final ImmutableListMultimap<String, String> PARAMETERS =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 05 13:16:00 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertEquals("text", MediaType.parse("text/plain").type());
        assertEquals("application", MediaType.parse("application/atom+xml; charset=utf-8").type());
      }
    
      public void testGetSubtype() {
        assertEquals("plain", MediaType.parse("text/plain").subtype());
        assertEquals("atom+xml", MediaType.parse("application/atom+xml; charset=utf-8").subtype());
      }
    
      private static final ImmutableListMultimap<String, String> PARAMETERS =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 05 13:16:00 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. src/go/build/constraint/expr.go

    			panic(&SyntaxError{Offset: p.pos, Err: "double negation not allowed"})
    		}
    		return not(p.atom())
    	}
    	return p.atom()
    }
    
    // atom parses a tag or a parenthesized expression.
    // On entry, the next input token HAS been lexed.
    // On exit, the next input token has been lexed and is in p.tok.
    func (p *exprParser) atom() Expr {
    	// first token already in p.tok
    	if p.tok == "(" {
    		pos := p.pos
    		defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

          parse("text/plain;boundary=foo;charset=utf-8").hashCode(),
        )
      }
    
      @Test fun testValidParse() {
        assertMediaType("text/plain")
        assertMediaType("application/atom+xml; charset=utf-8")
        assertMediaType("application/atom+xml; a=1; a=2; b=3")
        assertMediaType("image/gif; foo=bar")
        assertMediaType("text/plain; a=1")
        assertMediaType("text/plain; a=1; a=2; b=3")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top