Logo

14 Writing parsers with PetitParser

Pre-existing parsers and importers allow us to deal with well-known languages and data formats. However, in many situations we have to reason about systems written in custom languages or formats.

In such situations we need to have the possibility of specifying custom parsers. Moose comes with PetitParser, a parsing framework that enables us to build custom parsers easily.

This chapter covers this framework. We start with a hands-on tutorial (see Section 14.1), and then we move on to looking into the overall design and the various components.

User Contributed Notes

Hugo.Roth.External (15 January 2013, 1:53 pm)

Test MOOSE for Software Re-Engineering.

rafatals3ode (19 April 2012, 6:14 pm)

how i can convert MSE file to XML file

tudor (24 July 2011, 11:54 am)

Corrected. Thanks.

sean (23 July 2011, 5:06 pm)

English tense correction. s/Pre-existing parsers and importers allows us to deal/Pre-existing parsers and importers allow us to deal/

awosty (4 June 2010, 11:52 pm)

English tense correction. s/ PetitParser offer this option/ PetitParser offers this option/

Add a Note