Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add exception X::Syntax::AddCategorial::MissingSeparator
  • Loading branch information
usev6 committed Jan 1, 2015
1 parent 16122bf commit b249312
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/Type/X/Syntax/AddCategorial/MissingSeparator.pod
@@ -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
1 change: 1 addition & 0 deletions type-graph.txt
Expand Up @@ -386,6 +386,7 @@ class X::Syntax::Regex::Adverb does X::Syntax
class X::Syntax::Regex::SolitaryQuantifier does X::Syntax
class X::Syntax::Signature::InvocantMarker does X::Syntax
class X::Syntax::Term::MissingInitializer does X::Syntax
class X::Syntax::AddCategorial::MissingSeparator does X::Syntax
class X::Syntax::Extension::Category does X::Syntax
class X::Syntax::InfixInTermPosition does X::Syntax
class X::Syntax::Pod::BeginWithoutIdentifier does X::Syntax does X::Pod
Expand Down

0 comments on commit b249312

Please sign in to comment.