Hi, After having read all the messages in this thread starting with this note, I just want to throw my $.02 into the pot:
I admit feeling more comfortable with good hand-written parsers, too. It is easy after all: You just convert each BNF statement into a method and you are almost done. Tokenizing is definitely a separate step - yet depending on the set of terminal symbols not that complicated, either. Reading and understanding a clean hand-written parser containing the actual BNF as comments is much easier than understand JavaCC code (don't know about ANTLR, and yacc is similar :-) ). And this has a direct influence on the quality of the code :-) BTW: I also have encountered parsers implemented as a State Machine with one huge method looping over the symbols and setting state and having a huge switch statement ... Well in such cases, I would rather suggest to use a generator :-) Regards Felix Am Dienstag, den 11.09.2007, 09:08 +0200 schrieb Thomas Mueller: > > use javacc for SQL2 parsing > > I would use a hand-written recursive descent parser. I know I'm > probably the only one suggesting this... > > Thomas
