Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
X::Syntax::Reserved
- Loading branch information
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,7 +187,13 @@ my class X::Syntax::Name::Null does X::Syntax { | |
| } | ||
|
|
||
| my class X::Syntax::UnlessElse does X::Syntax { | ||
| method message() { 'unless does not take "else", please rewrite using "if"' } | ||
| method message() { '"unless" does not take "else", please rewrite using "if"' } | ||
| } | ||
|
|
||
| my class X::Syntax::Reserved does X::Syntax { | ||
| has $.reserved; | ||
| has $.instead = ''; | ||
| method message() { "The $.reserved is reserved$.instead" } | ||
| } | ||
|
|
||
| my class X::Syntax::P5 does X::Syntax { | ||
|
|
@@ -200,7 +206,7 @@ my class X::Syntax::NegatedPair does X::Syntax { | |
|
|
||
| my class X::Syntax::Variable::Numeric does X::Syntax { | ||
| has $.what = 'variable'; | ||
| method message() { "Cannot declare a numeric $.what" } | ||
| method message() { "Cannot declare a numeric variable" } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
moritz
Author
Member
|
||
| } | ||
|
|
||
| my class X::Syntax::Variable::Match does X::Syntax { | ||
|
|
||
$.what is not used, maybe it's wrong here.