[antlr-interest] examples grammars involving "@synpredgate{...}"?
Terence Parr
parrt at cs.usfca.edu
Mon Jun 11 16:35:39 PDT 2007
On Jun 11, 2007, at 8:38 AM, David A Weiser wrote:
> I've been looking for example grammars that use the @synpredgate{...}
> action, but i cannot find any.
>
> right now i've tried the following in m
Hmm...i get:
if ( true ) {
action
}
when I do:
grammar T;
options { backtrack=true; }
@synpredgate{true}
a : b ';'
| b '!'
;
b : '(' b ')' {action}
| B
;
Ter
More information about the antlr-interest
mailing list