Skip to content

Commit

Permalink
Add a more useful nyi error message for supersede.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Feb 16, 2010
1 parent fd288ff commit 626ff56
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Perl6/Grammar.pm
Expand Up @@ -552,10 +552,13 @@ token multi_declarator:sym<null> {
}

proto token scope_declarator { <...> }
token scope_declarator:sym<my> { <sym> <scoped('my')> }
token scope_declarator:sym<our> { <sym> <scoped('our')> }
token scope_declarator:sym<has> { <sym> <scoped('has')> }
token scope_declarator:sym<augment> { <sym> <scoped('augment')> }
token scope_declarator:sym<my> { <sym> <scoped('my')> }
token scope_declarator:sym<our> { <sym> <scoped('our')> }
token scope_declarator:sym<has> { <sym> <scoped('has')> }
token scope_declarator:sym<augment> { <sym> <scoped('augment')> }
token scope_declarator:sym<supercede> {
<sym> <.panic: '"supercede" not yet implemented'>
}

rule scoped($*SCOPE) {
:my $*TYPENAME := '';
Expand Down

0 comments on commit 626ff56

Please sign in to comment.