[antlr-interest] Non whitespace symbols

Matt Palmer mattpalms at gmail.com
Wed Aug 6 09:15:04 PDT 2008


Would this roughly do what you want?

WORD: NOT_WHITE_SPACE+;
fragment NOT_WHITE_SPACE: ~WS;
fragment WS: ' ' | '\u0009' | '\u000A';

Matt

On Wed, Aug 6, 2008 at 5:09 PM, Сергій Карпенко <bergschloss at ukr.net> wrote:

>  Hi all.
> There is a point. How make
> a rule for any non whitespace character. For any char set (english, russian, arabic etc).
>
>     WORD: ('\u0400'..'\u04FF' | 'a'..'z' | 'A'..'Z' |'0'..'9')+;
> is not a case.
>
> Thanks.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080806/097aab2a/attachment.html 


More information about the antlr-interest mailing list