Has anyone thought about the pros/cons of adding an infix operator to
ANTLR? Here's a simple example of what I mean:
Currently, ANTLR.g3 contains this rule:
throwsSpec
: 'throws' id ( COMMA id )*
;
Which could be written using a greedy infix operator (represented here
by %) as:
throwsSpec
: 'throws' (id % COMMA)
;
I think an operator like this would be interesting, but I'd really like
to hear some other opinions.
Thanks,
Sam
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev