RedCloth-parslet on Github is probably way more complex than what you're looking for, but it is nonetheless an example of splitting up a big parser across files and calling other parsers from inside a parser. Hope it helps
Sent from my iPhone On Mar 23, 2012, at 12:10 AM, Pradeek J <[email protected]> wrote: Hi, What is the recommended code structure for writing the parser? Almost all example parsers seem to be just one big class. Is there a recommended way of splitting it up into modular files? Thanks. - Pradeek
