Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for exprTokens (0.12 sec)

  1. src/cmd/dist/buildtag.go

    // that combines two values according to the operator.
    // In that case, the parsing loop parses the two values.
    type exprToken struct {
    	tok    string
    	prec   int
    	prefix func(*exprParser) val
    	infix  func(val, val) val
    }
    
    var exprTokens []exprToken
    
    func init() { // init to break init cycle
    	exprTokens = []exprToken{
    		{tok: "&&", prec: 1, infix: func(x, y val) val { return x && y }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 03:35:04 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. src/encoding/json/stream_test.go

    	tests := []struct {
    		CaseName
    		json      string
    		expTokens []any
    	}{
    		// streaming token cases
    		{CaseName: Name(""), json: `10`, expTokens: []any{float64(10)}},
    		{CaseName: Name(""), json: ` [10] `, expTokens: []any{
    			Delim('['), float64(10), Delim(']')}},
    		{CaseName: Name(""), json: ` [false,10,"b"] `, expTokens: []any{
    			Delim('['), false, float64(10), "b", Delim(']')}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top