On 6/2/10 5:03 PM, "Ken Williams" <[email protected]> wrote:
> The only thing missing now is the character-data from DATE. Is there a way
> to change that 'token' rule to something like this?
>
> token : date -> {new CommonToken(DATE, $text)} | SLASH | DIGITS;
Of course, right after I wrote that, I came up with this:
token : date -> {new CommonTree(new CommonToken(DATE, $text))}
| SLASH
| DIGITS;
I think that'll work for me.
--
Ken Williams
Sr. Research Scientist
Thomson Reuters
Phone: 651-848-7712
[email protected]
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].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.