vilterp / hobbes

an interpreted dynamic language. Philosophy: minimalist and sensible like Python, but everything's an object like Ruby and Smalltalk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the line "foo bar" doesn't throw a syntax error inside a block

vilterp opened this issue · comments

Blocks don't know when lines are ending, they just get a list of tokens for the whole block.

Maybe an EOL TokenType and a blockLine rule are necessary

Also, the Tokenizer should put tab tokens in the token stream so the Parser can know about indentation (for if..else, try..catch, etc)

Tokenizer adds EOL tokens now, and blocks are in {}'s.