feed

NOTE: This is an excerpt from the in-code documentation of the parser.  I thought I’d post it as an introduction on how error recovery works in RCC.  I’ll add examples later. Error recovery in rcc involves trying to alter the token stream in order to produce a valid parse.  This is predicated on the idea that [...]

read on →

I’m going to take the opportunity to elaborate on something I mentioned in Introduction to RCC Grammars): RCC-generated lexers are context-sensitive. Specifically, RCC generates a whole set of lexers for you, one for each parser state. Why should you care?  Well, because it means that RCC can handle declaratively what you might have had to do with [...]

read on →

The first thing you should know about the RCC grammar description language is that action code is not embedded in the grammar.  This differs greatly from systems like yacc and ANTLR, which essentially overlay a macro layer on a source file in the output language.  I’m pretty big on separation of concerns — I think [...]

read on →


Site copyright 2007-2008 Chris Poirier.       Powered by Wordpress.       Entries RSS Comments RSS Validate Log in