[antlr-interest] Newbie Q: A token for "other" characters?
Loring Craymer
lgcraymer at yahoo.com
Mon Aug 7 02:42:16 PDT 2006
ANTLR supports wildcard matches [ '.' matches any character], ranges, and negation [ ~ ( 'a'..'z') matches any character except a through z.]
--Loring
Mark Junker <m.junker at hm-software.de> wrote: -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Loring Craymer wrote:
> All ANTLR tokens require rules to define them. You need an EQUALS rule
> as well as the EQUALS_ESCAPE rule.
Ok, thanks ... but this problem is different from the previous one. I
just forgot to add the EQUALS rule in the example before - but this
problem is a different one and not related to the previous problem.
The reason why I such a feature would be nice is that I want to
implement a syntax where the user may use non-US characters and I think
that it'd be annoying to explicitly write that I want every character
except a, b, c, ... etc...
This problem causes me some headaches. Is there an easy/good solution
available for this problem?
- --
Kind regards,
Mark Junker
HM-Software
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE1wne+vrgfQU/RLsRAsYfAKCTeS/H/QuZDQ2GdvtfiwSVlv6xwgCfaO/I
HmRFdWM79oRn80mh0DJqC54=
=rmhD
-----END PGP SIGNATURE-----
begin:vcard
fn:Mark Junker
n:Junker;Mark
org:HM-Software
adr;dom:;;Rampenweg 1b;Adelheidsdorf;;29352
email;internet:m.junker at hm-software.de
tel;work:+49-5085-9894-0
tel;fax:+49-5085-9894-44
x-mozilla-html:FALSE
url:http://www.hm-software.de
version:2.1
end:vcard
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060807/83a541f2/attachment.html
More information about the antlr-interest
mailing list