CC: | greg [...] foletta.org |
Subject: | Autostub and Matchrule |
Hi,
I've tried to search for information before posting this, but couldn't find any.
It appears that if I'm using a matchrule in conjunction with autostubbing, the dynamic matchrule doesn't get autostubbed?
Here's an example of what I'm doing:
my $parser = new Parse::RecDescent(q{
<autostub>
startrule: config_line(s) { $item{'config_line(s)'} } |
unrecognised { $item{unrecognised} }
config_line: <rulevar: local $type_re = defined $arg[0] ? qr{$arg[0]} : qr{[-\w]+}>
config_line: 'set' m{$type_re} <matchrule:$item{__PATTERN1__}> config_line[ $item{__PATTERN1__} ](s?)
...
});
If I run this with the input 'set blah blah', I get the error:
Unknown starting rule (Parse::RecDescent::namespace000001::blah) called
Is this known or expected behaviour?