-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Inputs:
let x = 3; 3x
3 x
5yExpected Outputs:
Syntax Error: Invalid or Unexpected token
Syntax Error: Unexpected identifier 'x'
Syntax Error: Invalid or Unexpected tokenActual Outputs:
3
3
ReferenceError: y is not definedIt 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)