[antlr-interest] Evaluation boolean expressions
mail at martin-probst.com
Wed Jul 27 06:52:36 PDT 2005
> But I'm a little bit confused : does it worth using ANTL if such a simple
> algorithm is so hard to develop?
> Or can't ANTLR evaluates such simple expression as (4 + (5*2) > 15) OR (4>1)
ANTLR is being used to implement turing complete languages by many
different projects and many people. It's a great help for parser
generation, but not necessarily for evaluation. That's of course because
all languages are quite different in their execution model.
The actual execution is usually what you implement yourself. Treeparsers
are used by most people to translate ASTs into their own execution model
(e.g. some kind of expression objects), or for translation (e.g. into
More information about the antlr-interest