There was a bug in the brag expander handling the optional source-name argument to parsers genrated by using make-rule-parser;
No matter what rule-name one gave, the macro just expanded to use PARSE when one gave a source name, hence using the entire grammar, not the sub-grammar given by the rule.
This is an attempt at fixing this bug; includes a regression test.
There was a bug in the brag expander handling the optional
source-name
argument to parsers genrated by usingmake-rule-parser
;No matter what rule-name one gave, the macro just expanded to use
PARSE
when one gave a source name, hence using the entire grammar, not the sub-grammar given by the rule.This is an attempt at fixing this bug; includes a regression test.