the line "foo bar" doesn't throw a syntax error inside a block
vilterp opened this issue · comments
Pete Vilter commented
Blocks don't know when lines are ending, they just get a list of tokens for the whole block.
Pete Vilter commented
Maybe an EOL TokenType
and a blockLine
rule are necessary
Pete Vilter commented
Also, the Tokenizer should put tab tokens in the token stream so the Parser can know about indentation (for if..else
, try..catch
, etc)
Pete Vilter commented
Tokenizer adds EOL tokens now, and blocks are in {}
's.