|JavaCC vs SableCC vs CUP vs GMD firstname.lastname@example.org (Roger Keays) (2001-05-21)|
|Re: JavaCC vs SableCC vs CUP vs GMD email@example.com (Bernd K=?ISO-8859-1?B?/A==?=hl) (2001-05-30)|
|From:||Roger Keays <firstname.lastname@example.org>|
|Date:||21 May 2001 02:06:26 -0400|
|Organization:||University of Queensland|
|Posted-Date:||21 May 2001 02:06:26 EDT|
Is there any consenus as to which is the best Java-producing parser
>From what I've read and tried so far it seems that:
Sable has these good points:
- Bottom up
- Action code in separate class
- Don't have to generate tree
- elegant error handling
but these bad points:
- Very strict AST (seems to defeat the whole point of bottom up parsing)
- how can you do semantic checks on the fly? e.g declaration before use?
JavaCC ::= <Good Points>*
- Flexible tree building
Note on javacc: I downloaded the latest release (v2.0), but the jjtree
preprocessor doesn't seem to work properly. It makes references to a
method setName(..) which it never includes in the nodes it
generates. This only happens in MULTI mode.
Haven't touched CUP.. Is it good?
GMD Suite seems pretty powerful, but it's a combination of a whole lot of
fiddly tools. It does allow arbitrary tree construction though, and it is
What does everyone think?
Return to the
Search the comp.compilers archives again.