Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
commit to trait mods to avoid misleading messages
  • Loading branch information
TimToady committed Dec 20, 2014
1 parent c94e169 commit fb9127c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Perl6/Grammar.nqp
Expand Up @@ -3069,14 +3069,14 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}

proto rule trait_mod { <...> }
rule trait_mod:sym<is> { <sym> <longname><circumfix>**0..1 }
rule trait_mod:sym<hides> { <sym> <typename> }
rule trait_mod:sym<does> { <sym> <typename> }
rule trait_mod:sym<will> { <sym> <identifier> <pblock> }
rule trait_mod:sym<of> { <sym> <typename> }
rule trait_mod:sym<as> { <sym> <typename> }
rule trait_mod:sym<returns> { <sym> <typename> }
rule trait_mod:sym<handles> { <sym> <term> }
rule trait_mod:sym<is> { <sym> [ [<longname><circumfix>**0..1] || <.panic: 'Invalid name'>] }
rule trait_mod:sym<hides> { <sym> [ <typename> || <.panic: 'Invalid typename'>] }
rule trait_mod:sym<does> { <sym> [ <typename> || <.panic: 'Invalid typename'>] }
rule trait_mod:sym<will> { <sym> [ <identifier> || <.panic: 'Invalid name'>] <pblock> }
rule trait_mod:sym<of> { <sym> [ <typename> || <.panic: 'Invalid typename'>] }
rule trait_mod:sym<as> { <sym> [ <typename> || <.panic: 'Invalid typename'>] }
rule trait_mod:sym<returns> { <sym> [ <typename> || <.panic: 'Invalid typename'>] }
rule trait_mod:sym<handles> { <sym> [ <term> || <.panic: 'Invalid term'>] }


## Terms
Expand Down

0 comments on commit fb9127c

Please sign in to comment.