[antlr-interest] Implicit Parser Rule Return Types
Terence Parr
parrt at cs.usfca.edu
Tue Nov 21 11:04:35 PST 2006
On Nov 21, 2006, at 10:52 AM, Randall R Schulz wrote:
> So my question is this: Why does one rule return something when the
> other does not even though both of them have terminals as their
> right-hand-side?
if in an action you reference one of those rules' attributes, then it
creates the return structure. Because this is expensive, it tries to
avoid at all costs.
Ter
More information about the antlr-interest
mailing list