[antlr-interest] Catch all else rule

Terence Parr parrt at cs.usfca.edu
Sun Mar 15 17:53:55 PDT 2009


Hi Des, see filter mode for lexers.
Ter
On Mar 15, 2009, at 5:42 PM, Des Hartman wrote:

> Is there a way to set up a rule that catches all other matches if  
> none of the parsing matches? My thinking here is I match all the  
> parser rules that I know of such as:
>
> multiplication
> adding
> power
> operand
> literal
> etc
>
> and if none of these are matched, then the entered text is a string.
>
> Thanks
> Des
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list