tags:

views:

413

answers:

3

Does anyone know an online repository for lex/yacc format grammars? I'm looking for a Java grammar to make a quicky sourcecode converter.

Thank you!

edit: I'm preferably looking for lex/yacc because I want to use fslex/fsyacc with as little grammar rewriting as possible.

+1  A: 

Not exactly lex/yacc format but the JavaCC project hosts a couple grammars here.

Jordan
A: 

ANTLR has a Java grammar.

duffymo
A: 

SableCC is also a possible candidate. It works great.

gpampara