Skip to content

Commit

Permalink
STD tracking: handles trait verb followed by noun, not EXPR.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed May 5, 2009
1 parent c77bd19 commit 53f7059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser/actions.pm
Expand Up @@ -879,7 +879,7 @@ method trait_auxiliary($/) {
method trait_verb($/) {
my $sym := ~$<sym>;
my $value;
if $sym eq 'handles' { $value := $<EXPR>.ast; }
if $sym eq 'handles' { $value := $<noun>.ast; }
else { $value := $<typename>.ast; }
make PAST::Op.new( :name('infix:,'), 'trait_verb:' ~ $sym, $value );
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser/grammar.pg
Expand Up @@ -455,7 +455,7 @@ rule trait_auxiliary {
rule trait_verb {
[
| $<sym>=[of|returns] <typename>
| $<sym>=[handles] <EXPR>
| $<sym>=[handles] <noun>
]
{*}
}
Expand Down

0 comments on commit 53f7059

Please sign in to comment.