Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
implement autogen of meta nouns
  • Loading branch information
TimToady committed Oct 30, 2015
1 parent fe5b300 commit 52e5dd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Perl6/Grammar.nqp
Expand Up @@ -367,8 +367,9 @@ role STD {
$match<postfix_prefix_meta_operator> ||
$match<op>)
{
# nqp::printfh(nqp::getstderr(), $match.ast.dump);
self.NYI("Autogeneration of $op $cat");
my $META := $match.ast[0];
my $fun := $*W.compile_time_evaluate($var,$META);
$*W.install_lexical_symbol($*UNIT,$name,$fun);
}
else {
$var.CURSOR.add_mystery($name, $var.to, 'var');
Expand Down

0 comments on commit 52e5dd2

Please sign in to comment.