Le 12/09/2010 19:49, Dibyendu Majumdar a écrit :
Well, also because I am not yet confident about ANTLR both as a tool
and of my ability to use it effectively.
The main advantage of using ANTLR is when defining the grammar - as it
allows rapid prototyping. However, I am finding that some of the tools
are a bit flaky. The Eclipse ANTLR IDE just doesn't seem to work; the
ANTLRWorks tool can't handle backtracking in the Interpreter (one has
to use the Debugger to work around this). Unfortunately it seems very
hard to remove backtracking in a C like grammar - even the official
ANTLR Java and C grammars rely on backtracking - so I reckon if
experts can get rid of this I have no chance!
Don't forget that some parser generators like SableCC or Tatoo
use LR grammars and not LL ones.
In that case, writing a grammar is simpler.
I do not yet know how robust ANTLR is; so that's another concern. If I
hit bugs then I would rather just handcode a parser than waste time
working out why things aren't working. Already the tools mentioned
above have been a fit frustrating due to the bugs/limitations.
Regards
Dibyendu
cheers,
Rémi
--
You received this message because you are subscribed to the Google Groups "JVM
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jvm-languages?hl=en.