mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 23:51:03 +00:00
messing with parser, Rows call
messing around trying to get Rows call to recognize $ syntax. got Rows to not barf, but it is interpreting $ syntax as string values for the _field parameter as opposed to a Variable
This commit is contained in:
parent
a755006d95
commit
f5d0b227fa
2 changed files with 452 additions and 445 deletions
|
|
@ -57,7 +57,7 @@ singlequotedstring <- ( '\\\'' / '\\\\' / '\\n' / '\\t' / [^'\\] )*
|
|||
|
||||
variable <- ( [[A-Z]] / '_' ) ( [[A-Z]] / [0-9] / '_' / '-' )*
|
||||
|
||||
fieldExpr <- ( [[A-Z]] / '_' ) ( [[A-Z]] / [0-9] / '_' / '-' )*
|
||||
fieldExpr <- ( [[A-Z]] / '_' / '$' ) ( [[A-Z]] / [0-9] / '_' / '-' )*
|
||||
field <- <fieldExpr / reserved> { p.addField(text) }
|
||||
reserved <- '_row' / '_col' / '_start' / '_end' / '_timestamp' / '_field'
|
||||
posfield <- 'field='? <fieldExpr> { p.addPosStr("_field", text) }
|
||||
|
|
|
|||
895
pql/pql.peg.go
895
pql/pql.peg.go
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue