On 9/14/12, Stephan Eggermont <stephan(a)stack.nl> wrote:
Guillermo wrote:
Maybe you can use a -completely separate-
pre-parser? :)
It takes the input with the pre processor directives, and answers a new
processed string which the original parser will handle?.
Yes, I guess so. I'm fighting a bit with PetitParser, wondering if the
traditional
style of building parsers wouldn't be faster. But that might be just about
trying
something new. I like the tests, the separate lexicon, syntax and semantics
subclassing not so much better than preprocessing, scanning, parsing.
I definitely don't like having 80 productions in a class
I put them into into method categories and that works very fine for me.
(growing to 300,
not
sure how to grow over the max nr of instVars ).
I assume it is not possible to have more than 255 rules in a class but
I have not tried this limit yet.
But you can start combining parser as I understand. I have not done
this either, so I would appreciate to be pointed to an example.
--Hannes
Is there an array or
dictionary
based PPCompositeParser?
Stephan
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev