On Fri, Nov 25, 2011 at 9:54 PM, Bart Kiers <[email protected]> wrote:
> ...
>
> -----------------------------
>
> tokens {
> CONTAINS_MATCH;
> }
>
> ...
>
> CONTAINS_TEXT
> : 'contains' WS+ ( 'match' CONTAINS_MATCH
> | 'text' )
> ;
>
> ...
>
> fragment CONTAINS_MATCH : ;
>
> -----------------------------
>
>
Sorry, that snippet should've looked like:
-----------------------------
tokens {
CONTAINS_MATCH;
}
...
CONTAINS_TEXT
: 'contains' WS+ ( 'match' {$type=CONTAINS_MATCH;}
| 'text' )
;
...
fragment CONTAINS_MATCH : ;
-----------------------------
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.