New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a easy way to ignore whitespace? #24
Comments
I'm tried modify the source code, and I imagine something like in treetop/runtime/compiled_parser.rb
And include an '-w/--ignore-whitespace' option in 'tt' binary... Some ideas/comments? |
You could just |
On 20/01/2012, at 2:01 AM, Geovani de Souza wrote:
PEG Parsers do not (usually) have such a feature, because they do not For an example of how to do this, you could view my parser for CQL at When parsing keywords, be careful to avoid the trap of omitting trailing Please send any further requests to the mailing list at treetop-dev@googlegroups.com Clifford Heath. |
On Thu, Jan 19, 2012 at 2:14 PM, Clifford Heath
GMTA, at least for rule s. :) I found a huge productivity gain in doing this work by preprocessing I found I used 's' a lot less, and ' ' a lot more. My grammars are |
Hi!
I'm writing my grammar using treetop, for a new programming language (prototype for while), but I cannot found a way to ignore whitespace/comments assertively.
There's an feature in tool, or will be implemented soon?
The text was updated successfully, but these errors were encountered: