Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add (preliminary?) action method for defterm
  • Loading branch information
moritz committed Aug 13, 2012
1 parent 5740db1 commit 6f4df39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -2869,6 +2869,12 @@ class Perl6::Actions is HLL::Actions {
else { %*PARAM_INFO<named_names>.push(''); }
}

method defterm($/) {
%*PARAM_INFO<variable_name> := ~$<identifier>;
%*PARAM_INFO<desigilname> := ~$<identifier>;
%*PARAM_INFO<sigil> := '';
}

method default_value($/) {
make $<EXPR>.ast;
}
Expand Down

0 comments on commit 6f4df39

Please sign in to comment.