[antlr-interest] Some problem in parsing. Need Help.

Desai Nishitkumar Ashokkumar nadesai at cse.iitb.ac.in
Sun Nov 13 13:32:06 PST 2005


Hi,
      I want some help. This the problem which i want to solve.

When some wrong token is found, ANTLR gives error like "unexpected 
token:...". What I want to do is when this kind of error is found 
I want to give some other token to ANTLR and want antlr starts parsing 
from previos state with this new given token.

Can anyone tell me that How to do this in ANTLR ?  Where (which places or 
part) I have to make changes do this ??

Thanks in advance.

-Nishit

On Sun, 13 Nov 2005 antlr-interest-request at antlr.org wrote:

> Send antlr-interest mailing list submissions to
> 	antlr-interest at antlr.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.antlr.org/mailman/listinfo/antlr-interest
> or, via email, send a message with subject or body 'help' to
> 	antlr-interest-request at antlr.org
>
> You can reach the person managing the list at
> 	antlr-interest-owner at antlr.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of antlr-interest digest..."
>
>
> Today's Topics:
>
>   1. parsing and modifying java programs. please help!
>      (Naghmeh Daneshmand)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 13 Nov 2005 00:12:23 +0100
> From: Naghmeh Daneshmand <naghmeh.daneshmand at informatik.uni-ulm.de>
> Subject: [antlr-interest] parsing and modifying java programs. please
> 	help!
> To: antlr-interest at antlr.org
> Message-ID: <437676D7.10108 at informatik.uni-ulm.de>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> Hi,
> how can I define my own node type (AST). I would like to parse Java
> programs and modify their values. What would be the best way to achieve
> this goal?
> Is there any example of this and where can I find them?
> Have I to define a new node type?
>
> thank you.
> Naghmeh
>
>
>
> ------------------------------
>
> _______________________________________________
> antlr-interest mailing list
> antlr-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/antlr-interest
>
>
> End of antlr-interest Digest, Vol 12, Issue 20
> **********************************************
>



More information about the antlr-interest mailing list