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
Add exception X::Syntax::AddCategorial::MissingSeparator
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| =begin pod | ||
| =TITLE class X::Syntax::AddCategorial::MissingSeparator | ||
| =SUBTITLE Compilation error due to defining circumfix operator without | ||
| separator between opening and closing terminator | ||
| class X::Syntax::AddCategorial::MissingSeparator does X::Syntax { } | ||
| Syntax error when a circumfix operator is defined, but within the definition | ||
| opening and closing terminators are not separated by a whitespace. | ||
| For example | ||
| multi sub circumfix:<ββ>($a) { return $a.floor; } | ||
| dies with | ||
| ===SORRY!=== | ||
| Unable to identify both starter and stopper from ββ | ||
| Perhaps you forgot to separate them with whitespace? | ||
| Valid code would contain an extra whitespace: | ||
| multi sub circumfix:<β β>($a) { return $a.floor; } | ||
| my $n = β4.9β; ## $n is now 4 | ||
| =end pod |
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