boo-lang / boo

The Boo Programming Language.
BSD 3-Clause "New" or "Revised" License
874 stars 148 forks source link

Support WSA mode by means of a token stream filter #73

Closed drslump closed 11 years ago

drslump commented 11 years ago

Instead of maintaining a separate grammar for the WSA mode it uses a token stream filter to produce tokens as expected by the standard grammar. This not only helps keeping them in sync but will also allow to make the wsa mode a simple flag for ParserSettings, reducing quite a bit the code for the parser assembly.

I also took the chance to introduce the ability to use end tokens in the indented grammar, they are just handled like whitespace.

bamboo commented 11 years ago

That was a long time coming :)

drslump commented 11 years ago

@bamboo I think we have hit a bug in github with this pull request. It's marked as merged but it isn't actually :confounded:

bamboo commented 11 years ago

actually it was my fault. I did merged it before checking the merge against boo-extensions which failed to build at which point I panicked and decided to "rewrite history".

bamboo commented 11 years ago

I hope it can be reopened maybe from a different branch?