tomarrell / lbadd

LBADD: An experimental, distributed SQL database
MIT License
387 stars 26 forks source link

parser: 2+3 is considered a literal expression rather than a binary expression #190

Closed tsatke closed 4 years ago

tsatke commented 4 years ago

Describe the bug Parsing 2+3 (unquoted) yields a literal expression rather than a binary expression.

To Reproduce Steps to reproduce the behavior: Try to parse 2+3.

Expected behavior Should yield a BinaryExpression(op=+, left=2, right=3).

Additional context Parsing "2+3" must yield a literal expression, 2+3 must not.