New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method 'pirflags' not found in class 'PIRT::Ops' #199
Labels
Comments
Where do you got a test file |
It's actually not part of NQP, is of another 'sub-language'. The 'sub-language' have no direct manipulation to PIR, it shouldn't have errors like this. |
I believe this code segment reproduce the error: use QRegex;
grammar TestGrammar is HLL::Grammar {
method TOP() {
my %*LANG;
%*LANG<Regex> := QRegex::P6Regex::Grammar;
%*LANG<Regex-actions> := QRegex::P6Regex::Actions;
my $rule := %*COMPILING<%?OPTIONS><rule>;
if nqp::defined($rule) && $rule eq 'regex' {
self.regex
} else {
self.NYI
}
}
token regex {
#:my %*RX;
#<p6regex=.LANG('Regex','nibbler')>
<p6regex=.LANG('Regex','TOP')>
}
token NYI { <?> }
}
class TestActions is HLL::Actions {
method regex($/) {
make QAST::Block.new( :node($/), $<p6regex>.ast );
}
}
class TestCompiler is HLL::Compiler {
}
my $comp := TestCompiler.new();
$comp.language('Test');
$comp.parsegrammar(TestGrammar);
$comp.parseactions(TestActions);
my $rx := $comp.compile('.*', :rule<regex>);
my $m := $rx('anything goes here'); The dumps should be looking like this:
|
wontfix until Parrot resurfaces |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, is this another bug? It shouldn't have such errors.
The text was updated successfully, but these errors were encountered: