[antlr-interest] ANTLR Matching Behavior

Ric Klaren klaren at cs.utwente.nl
Tue Jun 3 04:13:32 PDT 2003


On Tue, Jun 03, 2003 at 05:24:29AM -0000, madison_stjames wrote:
> Can you use the "dot" notation in ANTLR?

Yes. Lexer and Treeparsers support it for sure.. Parser I'm not sure about.
Think it is hidden in the docs somewhere (I hope). 

> For example, can I write something like (.) - match anything
> or (.){1-3) - one to three of any one character.

The {1-3} thing you have to implement manually in actions or other checks.

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  "Of all the things i've lost i miss my mind the most -Ozzy Osbourne


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list