Anyone out there ever use this module? Have any code that demonstrates it? I'd like to replace a simple regexp based parser
Both Parser.LR.GrammarParser and Parser.LR.lr are examples of how to use Parser.LR.Parser.
with something a little bit more formal, but I seem to be getting stuck somewhere. Particularly helpful would be a sample of the grammar description.
The grammar parsed by Parser.LR.GrammarParser is described in the autodoc entry for the module. Intended use of Parser.LR.GrammarParser is something like:
Parser p = Parser.LR.GrammarParser(#string "grammarfile.lr", this_object());
void do_something(string data) { p->parse(mk_scanner(data)); }
Bill