[antlr-interest] Token categories in grammar file

Vladimir Gusev vgusev at graphlogic.com
Wed Feb 21 13:57:08 PST 2007


Hello,

Is there a way to assign token categories in the grammar file, which then
could be used to highlight syntax in the editor? I suppose one will have to
make use of a custom Token class augmented with the category field, but how
one tells antlr to set this field?

Thanks.

Vladimir



More information about the antlr-interest mailing list