On Monday, November 29, 2010 at 08:08:16 (+0100) Martijn Reuvers writes:
>Hello Bill,
>
>As said before most likely your newline is causing problems. I'd
>recommend you to get rid of it first (completely including the \r \n
>constructs), to the point where your grammar does not give any error
>anymore. After that introduce it step by step.
>
>As a side note avoid using text constructs in parser rules (e.g.
>'cleanLogs', use real tokens for it). Sooner or later these will cause
>trouble, plus that with real tokens you can have better error
>reporting.
The basic issue seems to be that I want this basic form:
<command> [-timeout <NN>] [-notify <email_address>]
examples of which are:
cleanlogs -timeout 20 -notify [email protected]
cleanup -timeout 10 -notify "[email protected] [email protected]"
deploy -notify [email protected] -list "compA compB compC"
etc., along with the less-structured shell command types:
// with timeout
shell -timeout 20 find /x/web -name '*.logs.bak' | xargs rm -f
// without timeout
shell find /x/web -name '@*' | xargs mv /tmp/
The fact that I want an unquoted email address to be parsed (i.e.,
[email protected] and not '[email protected]') seems to be causing the problem.
I'm going to try to redo things a bit more cleanly, try to boil down
the problem further, and repost if I still have problems.
Thanks for the help.
Bill
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.