mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 22:51:02 +00:00
There are subtle inconsistencies, like "01" being a valid decimal but not a valid integer, which vaguely bug me. Cleaning this up, and the corresponding parser logic. A number can't have leading spaces because the grammar doesn't put spaces in them in the first place, so stop accepting them in the number syntax. This should never have any impact on anything, it's just simpler. Update a couple of test cases to reflect this -- no longer testing that trailing spaces are okay, now testing that they're not, for instance. |
||
|---|---|---|
| .. | ||
| ast.go | ||
| ast_test.go | ||
| decimal.go | ||
| decimal_test.go | ||
| doc.go | ||
| parser.go | ||
| parser_test.go | ||
| pql.peg | ||
| pql.peg.go | ||
| pqlpeg_test.go | ||
| token.go | ||