On Sat, Nov 14, 2009 at 12:11 PM, Gavin Lambert <[email protected]> wrote:
> There are quite a few options for resolving this, depending on what
> constructs are legal in your language.  One way is to use a syntactic
> predicate:
>
>  ID : (LETTER | ('.' LETTER) => '.')+ ('.' DIGIT+)?
>     | DIGIT+
>     ;

That makes sense, although I'm having a bit of trouble getting it to
work when I use this rule -- I still get two tokens from "foo.bar.32".

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--

You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=.


Reply via email to