- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Lexer (0.01 sec)
-
internal/s3select/sql/parser_test.go
package sql import ( "bytes" "testing" "github.com/alecthomas/participle" "github.com/alecthomas/participle/lexer" ) func TestJSONPathElement(t *testing.T) { p := participle.MustBuild( &JSONPathElement{}, participle.Lexer(sqlLexer), participle.CaseInsensitive("Keyword"), participle.CaseInsensitive("Timeword"), ) j := JSONPathElement{} cases := []string{
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.2K bytes - Viewed (0) -
internal/s3select/sql/parser.go
} // Identifier represents a parsed identifier type Identifier struct { Unquoted *string `parser:" @Ident"` Quoted *QuotedIdentifier `parser:"| @QuotIdent"` } var ( sqlLexer = lexer.Must(lexer.Regexp(`(\s+)` + `|(?P<Timeword>(?i)\b(?:YEAR|MONTH|DAY|HOUR|MINUTE|SECOND|TIMEZONE_HOUR|TIMEZONE_MINUTE)\b)` +Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.9K bytes - Viewed (0) -
internal/s3select/sql/jsonpath_test.go
if err != nil { t.Fatal(err) } b, err := io.ReadAll(f) if err != nil { t.Fatal(err) } p := participle.MustBuild( &JSONPath{}, participle.Lexer(sqlLexer), participle.CaseInsensitive("Keyword"), ) cases := []struct { str string res []any }{ {"s.title", []any{"Murder on the Orient Express", "The Robots of Dawn", "Pigs Have Wings"}},Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.7K bytes - Viewed (0)