[antlr-interest] Step-by-Step parsing

Pablo H paox75 at gmail.com
Fri Dec 7 07:09:26 PST 2007


Hi everybody,

I am newbie in parser generator tools. I have just downloaded antlr and I
have made some basic examples. I would like to know how to use antlr for
parsing a grammar step-by-step. My goal is to develop a program that, given
that a particular state of the parsing processing, it returns the list of
candidate tokens. For example, given that the following grammar:

S : 'a' A 'c' B ;
A : ('b')* | 'c' ;
B : ('d')+ ;

if the parser has already recognized "abb", calling the function
getCandidateList() will return "b c".

May you provide me some hints?

Thank very much in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071207/10b961a3/attachment.html 


More information about the antlr-interest mailing list