Henning P. Schmiedehausen wrote:
Haven't heard about JParse yet. antlr looks promising and @ AC US
someone told me that antlr3 will no longer need the antlr runtime,
which is one of the things that would keep me from using it. Love to
hear more about JParse.
Ok, if you're not keen on antlr you're probably not going to like JParse in that it uses antlr.

http://www.ittc.ku.edu/JParse/

But then JParse is just for java code anyway (I used it to create a software metrics program for analysing how 'well designed' ond 'object-oriented' peoples' code was).

Now, correct me if I'm wrong, but you can develop an antlr grammar quite easily that would treat whitespace as a token. Then, when you process the generated tree, you just decide what you want to do with that token depending on where it turns up. You could also have different tokens to help you out so you don't need to keep going forwards and backwards through the generated tree.

Do you have the current velocity language in an Extended Backus-Naur format? If so I could take a peek and see what we could do with the whitespace.

Paul.

--

*Paul Loy
Software Developer*

Peoples Archive Ltd.
Middlesex House
34-42 Cleveland Street
London, W1T 4LB

Tel: +44 (0) 20 7323 0323
Fax: +44 (0) 20 7580 1938
[EMAIL PROTECTED]


This email has been scanned by Postini.
For more information please visit http://www.postini.com

Reply via email to