dash
dash copied to clipboard
float literal and identifier parsed incorrectly
Inputs:
let x = 3; 3x
3 x
5y
Expected Outputs:
Syntax Error: Invalid or Unexpected token
Syntax Error: Unexpected identifier 'x'
Syntax Error: Invalid or Unexpected token
Actual Outputs:
3
3
ReferenceError: y is not defined
It seems that (integer)(identifier) is getting parsed as (integer), (identifier), effectively disposing the integer. None of these should pass the lexing stage, except in the case where there is whitespace between the two (both are valid tokens individually)
3xand5y-> dash_lexer3 x(space between) -> dash_parser?