[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to negate definitions?
From: |
Crni Gorac |
Subject: |
how to negate definitions? |
Date: |
Tue, 4 Dec 2001 06:06:30 -0800 (PST) |
I would like to have something like this in my Lex
file:
whtspc [ \t\n]
spcl [#\\]
%%
[^{whtspc}{spcl}] { do_something(); }
%%
But this of course doesn't work because curlies are
not special characters in character class. So I had to
instead use:
%%
[^ \t\n#\\] { do_something(); }
%%
What would be proper way to implement former? Thanks.
__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
- how to negate definitions?,
Crni Gorac <=