[antlr-interest] Enhancement request for identifying imaginarytokens
Terence Parr
parrt at cs.usfca.edu
Fri Dec 14 10:09:23 PST 2007
On Dec 14, 2007, at 10:04 AM, Hardy, Stephen wrote:
> Hi Terence,
>
> Understood, but with a large grammar it becomes a bit tedious to
> explicitly put for all imaginary tokens. Also, there is often no
> convenient token to co-opt for the purpose. I thought being able to
> specify a default of the "start" token (whatever it may be) would be
> useful for most folks, provided there was the option to override the
> token assignment as you showed below, with the usual [] syntax.
Possibly. Are you overusing imaginary tokens though? Seems you
create one for every rewrite. Why not just ref existing token?
Ter
More information about the antlr-interest
mailing list