james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert burrell donkin" <robertburrelldon...@gmail.com>
Subject Re: ANTLR
Date Sun, 10 Dec 2006 09:20:03 GMT
On 12/8/06, Joachim Draeger <jdraeger@gmx.de> wrote:
> Hi all,
> Okay, ANTLR has quite a steep learning curve. It took me some hours to
> create the first useful code.
> But then it's just great.
> It does exactly what I want: Parse the request and create an object tree
> representing it.
> It is possible to influence the structure of the tree and even the
> classes of the tree nodes.
> One solution would be extending the ANTLR tree nodes (AST) and implement
> an implementation independent, request representing interfaces.
> AFAIK it is also possible to take full control of the tree generation.
> Probably the best thing is that it is possible to manually transform the
> This could be done by achieving a nearly 1:1 relation between the
> entities from the ABNF and ANTLR rules.
> This allows a straight forward development and makes review for
> correctness quite effective.


anything i can do to help?

> A positive side effect: Abstraction often costs some extra time lost in
> the frameworks. In this case the generated code seems to be optimized
> for speed.
> Conclusion: IMO the best way to handle complex parsing. Maybe even for
> simple parsing. :-)

cool :-)

- robert

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message