So shouldn't this be the syntax?YYY && ! ('a' | 'b' | ZZZ) | 'something else'
I'm not really sure if this is valid but I'll give it a try for now.XXX: YYY ('a' | 'b' | ZZZ) <reject> | 'something' 'else' YYY: 'some string' ZZZ: 'ww' | 'xx' | 'yy' | 'zz'
It's pretty confusing actually, because another Production I'd like to write is:
So this is my first attempt:NonTerminator: SourceCharacter but not LineTerminator
Anyone think this is correct? or is it:NonTerminator: SourceCharacter | SourceCharacter LineTerminator <reject>
somehow I do not think the second one is correct...NonTerminator: SourceCharacter LineTerminator <reject>
Does the <reject> apply to the entire line or just the item that it follows?
In reply to Re: Re: Parse::RecDescent - Any Way to do a Negation?
by Incognito
in thread Parse::RecDescent - Any Way to do a Negation?
by Incognito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |