dragonfly
dragonfly copied to clipboard
Rules only included by RuleRef don't have default values put in extras, also process_recognition not called
If you setup a rule "hello <X>" where X is a RuleRef to another rule "[
It also appears (and I'm not sure if this is part of this bug) that process_recognition is not called for rules that are only included by RuleRef. I'd guess that this is intended behavior except the docs say, "This is generally the method which developers should override in derived rule classes to give them custom functionality when a top-level rule is recognized."
How about an example to go with your narrative? As they say, a picture is worth a thousand words.
@jgarvin: Could you please give an example showing this problem?
RuleRef elements handle defaults the same way as other basic elements, so there shouldn't be any different behavior seen there. Perhaps you set the default value on the Rule instead of the RuleRef? What the desired behavior is in that case is of course debatable.