File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
lib/Type/X/Syntax/AddCategorial Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ = begin pod
2
+
3
+ = TITLE class X::Syntax::AddCategorial::MissingSeparator
4
+
5
+ = SUBTITLE Compilation error due to defining circumfix operator without
6
+ separator between opening and closing terminator
7
+
8
+ class X::Syntax::AddCategorial::MissingSeparator does X::Syntax { }
9
+
10
+ Syntax error when a circumfix operator is defined, but within the definition
11
+ opening and closing terminators are not separated by a whitespace.
12
+
13
+ For example
14
+
15
+ multi sub circumfix:<ββ>($a) { return $a.floor; }
16
+
17
+ dies with
18
+
19
+ ===SORRY!===
20
+ Unable to identify both starter and stopper from ββ
21
+ Perhaps you forgot to separate them with whitespace?
22
+
23
+ Valid code would contain an extra whitespace:
24
+
25
+ multi sub circumfix:<β β>($a) { return $a.floor; }
26
+ my $n = β4.9β; ## $n is now 4
27
+
28
+ = end pod
Original file line number Diff line number Diff line change @@ -386,6 +386,7 @@ class X::Syntax::Regex::Adverb does X::Syntax
386
386
class X::Syntax::Regex::SolitaryQuantifier does X::Syntax
387
387
class X::Syntax::Signature::InvocantMarker does X::Syntax
388
388
class X::Syntax::Term::MissingInitializer does X::Syntax
389
+ class X::Syntax::AddCategorial::MissingSeparator does X::Syntax
389
390
class X::Syntax::Extension::Category does X::Syntax
390
391
class X::Syntax::InfixInTermPosition does X::Syntax
391
392
class X::Syntax::Pod::BeginWithoutIdentifier does X::Syntax does X::Pod
You canβt perform that action at this time.
0 commit comments