Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
A little STD alignment.
  • Loading branch information
jnthn committed May 24, 2011
1 parent 590e586 commit 69d2767
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/Perl6/Grammar.pm
Expand Up @@ -1077,17 +1077,17 @@ grammar Perl6::Grammar is HLL::Grammar {

proto token routine_declarator { <...> }
token routine_declarator:sym<sub>
{ <sym> <.end_keyword> <routine_def> }
{ <sym> <.end_keyword> <routine_def('sub')> }
token routine_declarator:sym<method>
{ <sym> <.end_keyword> :my $*METHODTYPE := 'Method'; <method_def> }
{ <sym> <.end_keyword> <method_def('method')> }
token routine_declarator:sym<submethod>
{ <sym> <.end_keyword> :my $*METHODTYPE := 'Submethod'; <method_def> }
{ <sym> <.end_keyword> <method_def('submethod')> }
token routine_declarator:sym<macro>
{ <sym> <.end_keyword>
<.panic: "Macros are not yet implemented"> }

rule routine_def {
:my $*IN_DECL := 'routine';
rule routine_def($d) {
:my $*IN_DECL := $d;
<deflongname>?
<.newpad>
[ '(' <multisig> ')' ]?
Expand All @@ -1099,8 +1099,9 @@ grammar Perl6::Grammar is HLL::Grammar {
]
}

rule method_def {
:my $*IN_DECL := 'method';
rule method_def($d) {
:my $*IN_DECL := $d;
:my $*METHODTYPE := $d;
[
<.newpad>
[
Expand Down

0 comments on commit 69d2767

Please sign in to comment.