12

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.

3 Answers3

2

ANTLR has a Java grammar.

duffymo
  • 305,152
  • 44
  • 369
  • 561
1

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

Jordan
  • 29
  • 2
0

SableCC is also a possible candidate. It works great.

gpampara
  • 11,989
  • 3
  • 27
  • 26