Hi,

PPExpressionParser is not meant to be subclassed. Read the class comment to see how to use it.

PPCompositeParser is meant to be subclassed and it offers a neat mapping between methods and variables to support caching of parsers. Take a look at the subclasses in the Moose image:
http://www.moosetechnology.org/download/5.0

If you are at it, in the Moose image, you also get a dedicated browser (World menu / Moose / PetitParser browser) for manipulating subclasses of PPCompositeParser.

Cheers,
Doru




On Tue, Nov 5, 2013 at 10:11 PM, Sean P. DeNigris <sean@clipperadams.com> wrote:
After reading the PetitParser chapter, I'm not clear when one would subclass
PPCompositeParser vs. using PPExpressionParser. What are the tradeoffs / use
cases? Also, can the book be improved or is that the final version? Thanks.



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Deep-Into-Pharo-PPExpressionParser-tp4719454.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.




--
www.tudorgirba.com

"Every thing has its own flow"