Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created January 10, 2023 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lizmat/18b0cc12644a2c7e228430d4faf55863 to your computer and use it in GitHub Desktop.
Save lizmat/18b0cc12644a2c7e228430d4faf55863 to your computer and use it in GitHub Desktop.
codegenning stubs
method IMPL-EXPR-QAST(RakuAST::IMPL::QASTContext $context) {
my $call := QAST::Op.new( :op('call') );
$call.name(self.IMPL-FUNC-NAME);
(self.args // RakuAST::ArgList.new(
RakuAST::StrLiteral.new('Stub code executed')
)
).IMPL-ADD-QAST-ARGS($context, $call);
$call
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment