[antlr-interest] TreeParser development: How to build an effective "dont care" rule?

luciano mantuaneli mantu_lists at yahoo.com.br
Fri Sep 15 07:51:58 PDT 2006


Hi!
I'm developing a TreeParser, and I wish to know how to create an rule that do nothing on matching any token.
I tried to do this with this rule:

dontCare:
    .
;

But, this rule doesn't seems to work properly. Depending on how my TreeParser  grammar is written, I get the following error message:

<AST>: Mismatched Token: expecting any AST node

My questions:
1)My dontCare rule is proper for the task mentioned above?
2)Do you know how this error message is related with my dontCare rule?

 		
---------------------------------
 O Yahoo! está de cara nova. Venha conferir!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060915/af4e6896/attachment.html 


More information about the antlr-interest mailing list