Parsec parser for Java?

Björn Bringert bringert at
Mon Apr 10 04:26:37 EDT 2006

Punyashloka Biswal wrote:
> Hi Haskellers,
> I'm writing a program-analysis tool in Haskell to operate on Java
> source code, and I need a parser.  Parsec provides javaStyle to
> help with lexical analysis, but I was wondering if there are any
> full-fledged Java parsers out there.
> Thanks,
> Punya

There is a BNFC [1] grammar for Java 1.1 [2]. BNFC can generate a parser 
in Haskell (along with lexer, abstract syntax and pretty printer) from 




More information about the Libraries mailing list