|(E)BNF Grammar to XML for LALR(1) parse table? Cox.Jason@gmail.com (2008-01-14)|
|Re: (E)BNF Grammar to XML for LALR(1) parse table? Cox.Jason@gmail.com (2008-01-15)|
|Re: (E)BNF Grammar to XML for LALR(1) parse table? email@example.com (Eric) (2008-01-15)|
|Re: (E)BNF Grammar to XML for LALR(1) parse table? firstname.lastname@example.org (Paul B Mann) (2008-02-15)|
|Re: (E)BNF Grammar to XML for LALR(1) parse table? email@example.com (firstname.lastname@example.org) (2008-02-17)|
|From:||"Paul B Mann" <email@example.com>|
|Date:||Fri, 15 Feb 2008 21:05:41 -0500 (EST)|
|Posted-Date:||15 Feb 2008 21:05:41 EST|
> I have created a grammar for a little calculator language my company
> created. We work exclusively in C# and I am having a difficult
> time finding tools to generate a business-class, maintainable lexer
> and parser.
> * Efficiency is paramount as this will be iterated over many times.
> * The code must be readable/maintainable.
> In this light, are there any tools which will examine a
> grammar and spit out the parse table in XML so I can generate code
> based on that?
Why do you want the parser tables in XML? Parser tables don't usually
get generated in XML.
Why do you want to hand code the parser tables, when they are usually
I know of one tool that can generate very fast parsers and lexers in
C++ from a BNF grammar and it's possible to re-write the parser
skeleton and have the parser tables generated in C#.
It's called LRGen 8.3 at http://lrgen.com
Wikipedia has a long list of parser generators here:
Paul B Mann
Return to the
Search the comp.compilers archives again.