[antlr-interest] whitespace-related question..
Fırat KÜÇÜK
firatkucuk at gmail.com
Thu Mar 29 01:18:35 PDT 2007
I think, you can use {$channel = HIDDEN;} manually via editing Token
class' _channel field.
2007/3/29, Eitan Suez <eitan.suez at gmail.com >:
> hello,
>
> in general in my parser i like to ignore whitespace.
> however there are circumstances where i'd like
> whitespace to be significant within the context of
> a specific parser rule.
>
> is there a way to tell antlr to ignore the "WS" rule
> in the context of a specific rule?
>
> i noticed antlrworks' interpreter has such an option
> but not sure if it's part of the antlr language.
>
> thanks, / eitan
>
>
--
Öğr. Gör. Fırat KÜÇÜK
ADAMYO Distance Learning
SAKARYA University / TURKEY
--
Öğr. Gör. Fırat KÜÇÜK
ADAMYO Distance Learning
SAKARYA University / TURKEY
More information about the antlr-interest
mailing list