You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a ruby runtime for the Handlebars.js templating language. I ran into an issue where the parser erroneously raises a string not in language exception when tokens contain underscores.
I have prepared examples of working and non-working lexers, parsers and specs for your enjoyment at jamesotron/FlavourSaver on the broken_parser and working_parser branches. In both branches if you run the specs you will find that the lexer output passes but the parser will change behaviour.
Thanks for RLTK, it's an awesome library!
The text was updated successfully, but these errors were encountered:
I'm working on a ruby runtime for the Handlebars.js templating language. I ran into an issue where the parser erroneously raises a string not in language exception when tokens contain underscores.
Changing the following rule:
to
Allows the parser to succeed.
I have prepared examples of working and non-working lexers, parsers and specs for your enjoyment at jamesotron/FlavourSaver on the
broken_parser
andworking_parser
branches. In both branches if you run the specs you will find that the lexer output passes but the parser will change behaviour.Thanks for RLTK, it's an awesome library!
The text was updated successfully, but these errors were encountered: