I'm working with the PLSQL.g grammar present on the antlr website.
It has a production that looks like
swallow_to_semi : { ^ SEMI }+;
The parser that this generates ends up producing a series of tokens
representing everything after (say) a SELECT statement. I would rather have a
single TOKEN containing all the characters in the body of the select.
I tried variations on
SQL_BODY : { ^ SEMI }+;
but that just leads to a variety of conflicts; and a fragment rule did not end
up helping me either. I've looked in both the Antlr Book and in the Compiler
Patterns book without finding anything that seemed relevant....
Thanks,
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.