I'm just evaluating using javacc for a project I'm working on and I've
run into a small problem.
Here's the token section of the simple parser I'm playing with:
TOKEN : {
<HELP_CMD: "HELP" >
| <GROUP_CMD: "GROUP" >
| <ARTICLE_CMD: "ARTICLE" >
| <POST_CMD: "POST" >
| <MSG_ID: "<"(["a"-"z","_", ".","@[EMAIL PROTECTED]
"])+">" >
| <GROUP: ["a"-"z"](["a"-"z","."])+["a"-"z"] >
}
The problem is that the quoted dots seem to be treated as any character
symbols and not a true dot. I'm not used to this method of specifying
regular expressions, so I don't really understand what I'm specifying.
How does one specify a period?
Is there a simple tutorial for javacc regular expressions somewhere?
Thanks.
--
Kenneth P. Turvey <kt-usenet@[EMAIL PROTECTED]
>
http://www.electricsenator.net
Necessity is the plea for every infringement of human freedom. It is
the argument of tyrants; it is the creed of slaves.
-- William Pitt