[antlr-interest] what does .* match

Anders Hessellund anders.hessellund at gmail.com
Mon Jun 25 04:35:01 PDT 2007


Hi,

I just bought the new ANTLR book, but I can not find any good description of
what the .* notation means. On p.85-6 there is an example of comments:

ML_COMMENT : '/*' .* '*/';


According to the book, this matches any character until it encounters */

In my implementation it does however complain about '*' with the 'no viable
alternative' error. Does '.*' match everything except '*'?

-- AH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070625/892924fd/attachment.html 


More information about the antlr-interest mailing list