Syntax & parsing
How source text is read: terms and operators, quoting, comments, statement ends, what binds to what.
305 rules from 200 tests. 176 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.
adverb-on-a-termRaku++ matches Rakudo on 35 of 40 probes- 2
An adverb modifies the operator before it, such as a subscript, a call or an infix.
%h<a>:exists,f(1):named,1 + 2 :foo
enum-argumentsRaku++ matches Rakudo on 21 of 29 probes- 2
The argument of
enumis an expression, and every member it yields is declared as a term.
type-name-is-a-termRaku++ matches Rakudo on 16 of 33 probes- 2
Only a routine's name takes what follows it as its argument; a class, role, enum, subset, native type or package-qualified type name does not.
word-infix-in-term-positionRaku++ matches Rakudo on all 24 probes- 2
What a word infix in term position names decides the outcome, alike for every word and position: a routine the program declares, a sigilless term, a setting routine (
min,max), or nothing.
amp-brace-term-is-the-blockRaku++ passesRakudo passes- 1
&{ … }is a term, the block (or hash) itself, as&( … )is the Callable contextualizer: in parentheses, as an argument and after a listop.say &{ 42 }()calls the block, andf &{ … }passes it tof
angle-list-dollar-caretRaku++ passesRakudo passes- 1
Inside a
< ... >word list everything is a word, so$^A-style text raises noX::Syntax::Perl5Varerror.for < $^A $^B > { }parses
angle-subscript-glued-infixRaku++ passesRakudo passes- 1
An operator starting with
=may be glued to the>that closes an angle subscript: the>closes the subscript and the rest is the operator.%h<a>==0parses as%h<a> == 0; likewise===,=~=,=:=,==>and=>
angle-subscript-hash-commentRaku++ passesRakudo passes- 1
A
#inside an angle-bracket subscript is a literal character, not the start of a comment.%exts<#csv>looks up the key#csv
angle-words-nest-by-characterRaku++ passesRakudo passes- 1
A
<…>word list nests its angle brackets by character.<a <=> b>holds the word<=> - 2
In a
<…>word list the first>with no<open closes the list, even after a space.< a >= b >is a syntax error
More from this test: Operators (1).
angle-words-starting-with-equalsRaku++ passesRakudo passes- 1
In term position — after
=, or spaced after a listop such assay—<=is the opening angle of a word list whose first word starts with=, not an infix.say <= a>is a word list;f <= 3is an unterminated one
anon-class-statement-takes-infix-and-modifierRaku++ passesRakudo passes- 1
An anonymous
class { … }that opens a statement is a term like any other: a statement modifier may follow it, and an infix may follow its postfix chain.class { … } for ^5andclass { has $.z is rw }.new.z = 42compile
anton-batch-2026-09-12Raku++ passesRakudo passes- 3
A leading
||in term position is a prefix operator taking one term, so an expression may open with||before its first operand and still evaluates as the logical chain, while@a[|| @dims]keeps its subscript meaning. inferredmy $x = || 1 == 2 || 3 == 3;givesTrue
More from this test: Containers & assignment (1), Operators (1).
arity-lax-callersRaku++ passesRakudo does not pass- 5
A subscript written tight against a routine name,
foo[10], indexes the result of callingfoo; it is not a listop argument.
More from this test: Compile-time errors (1), Signatures & dispatch (3).
assoc-index-on-scalar-diesRaku++ passesRakudo passes- 2
In a double-quoted string a
<…>directly after a variable is a subscript on that variable.in
"<div>$a$b</div>",$b</div>is read as$b<'/div'>
More from this test: Hashes & sets (1).
audited-language-gaps-1Raku++ passesRakudo passes- 2
return()written tight returns Nil, andreturn ()returns the empty List. - 3
%h<=>glued to its term is a subscript with the key=.
More from this test: Concurrency (1), Containers & assignment (1), Exceptions & control flow (1), Hashes & sets (1), Lists & laziness (2), Operators (1), Regexes & grammars (2), Signatures & dispatch (3).
bare-type-is-an-anonymous-slotRaku++ passesRakudo passes- 1
A bare type inside a list declaration is an anonymous slot: that position is skipped and nothing is declared for it.
my ($q1, Any, $q2) = quartiles(@x)takes the first and third values
bare-whatever-before-a-closing-bracketRaku++ passesRakudo passes- 1
A bare
*as the only argument of a listop directly before a closing]or}is a Whatever term, not an infix.:args[ast-value *]callsast-valuewith a Whatever
batch11-parse-clusterRaku++ passesRakudo passes- 1
The pointy parameter of an
iforelsifmay carry a trait, as inif $x -> $y is copy { $y++ }. inferred - 4
An indented
=begin comment…=end commentpod block inside a sub body is skipped whatever brackets it contains. inferred - 5
An
enumdeclaration may carry a trait with an argument before its value list, as inenum E is export(:tag) < A B C >. inferred
More from this test: Operators (1), Regexes & grammars (2), Signatures & dispatch (1).
batch11b-typed-blobsRaku++ passesRakudo passes- 4
The argument list after a method-call colon extends over a
Z+expression, soblob32.new: A Z+ Bpasses the zipped result. inferred - 5
(expr;)with a trailing semicolon is the grouped value, not a one-element list, while(1,2;3,4)is a two-element list. inferred(5;) === 5
More from this test: Numerics (2), Types & coercion (2).
bound-attribute-truthinessRaku++ passesRakudo passes- 3
The character
…inside a< … >word list is a literal character of the word, not the...operator.<f…z fo…az>holds words of 3 and 5 characters
More from this test: Containers & assignment (1), Lists & laziness (1).
brace-subscript-after-routine-callRaku++ passesRakudo passes- 1
A
{…}tight against a routine's name subscripts what the call answers, while with a space between them the block is the routine's argument.T{"max-rss"}subscripts the result of callingT
builtin-operator-called-by-nameRaku++ passesRakudo passes- 3
The guillemet and double-angle spellings of an operator's name call the operator.
infix:«<=»(1, 2)andinfix:<<∈>>(…)
More from this test: Operators (2).
callable-context-callme-rawRaku++ passesRakudo passes- 1
&(EXPR)is the Callable contextualizer: its result can be called directly and it is accepted as a listop argument.&(%encodings{$encoding})($buf)calls the stored routine
More from this test: Classes, roles & the MOP (1), Signatures & dispatch (1).
cbor-and-nqp-buffer-opsRaku++ passesRakudo does not pass- 5
A prefix
+^,~^or?^expression is accepted as a call or listop argument after a comma.
More from this test: Numerics (1), Types & coercion (2).
chained-angle-quoted-keyRaku++ passesRakudo passes- 1
<…>is a word list wherever it is written, so quotes inside a<…>subscript are part of the key.%a<a><'b-c'>reads the key'b-c', quotes and allAlso held by
angle-subscript.
class-range-spaces-set-identity-aliasRaku++ passesRakudo passes- 3
A
{ … }mentioning@_or%_is a Block, as one mentioning$_is..map: { @_[0] => @_[1] }maps with a block
More from this test: Containers & assignment (1), Operators (1), Regexes & grammars (1).
class-traits-and-module-gatesRaku++ passesRakudo cannot run it- 3
class A is export(:TAG) {…}takes the tag list as the trait's argument, leaving the next statement intact. - 4
A
subsetdeclaration takes traits andofin either order, as insubset S is export of Mu where ….
More from this test: Classes, roles & the MOP (2), Signatures & dispatch (1).
colon-arg-anon-class-hasRaku++ passesRakudo passes- 1
hasinside an anonymous class body passed as a colon-argument (Seq.new: class :: { has ... }) parses without ahas-outside-a-class error.
colon-call-int-arg-then-less-thanRaku++ passesRakudo passes- 1
A colon method call takes whitespace after its colon, so an integer literal first argument followed by
<is a comparison; a radix pair such as:16<FF>is glued to its colon..grep: 60 < * < 70compares
colon-listop-paren-argRaku++ passesRakudo passes- 1
In the colon-listop method call form a single parenthesised group is one argument, while a top-level comma separates arguments.
@q.push: ($a, $b, $c, $d)pushes one four-element List;push: (1,2), (3,4)passes two
colonpair-digits-regex-keyRaku++ passesRakudo passes- 1
In a colonpair of the form
:4mthe name after the digits is the pair's key, even when it spells a quote word such asm,sorrx.:4m, :5sis the two pairsm => 4ands => 5
colonpair-key-may-be-unicodeRaku++ passesRakudo passes- 1
A colonpair key is an identifier and may be any Unicode letter, including inside
<<…>>word quoting.<<:måndag(1) tisdag>>reads:måndag(1)as a pair
colonpair-value-takes-statement-modifiersRaku++ passesRakudo passes- 1
A colonpair's parenthesized value may contain a statement modifier, as plain parentheses may.
:title( S/(' ')$// given @element[0] ~ @element[1] )parses
conformance-phase3-containersRaku++ passesRakudo passes- 4
\(…)captures exactly the parenthesised group, so in\(1,2).listthe method is called on the Capture.
More from this test: Lists & laziness (1), Numerics (1), Stringification (1).
contextualizer-modifiers-and-dirRaku++ passesRakudo does not pass- 1
A statement modifier is allowed inside a sigil contextualizer:
@(EXPR for LIST),@(EXPR if COND),$(EXPR for LIST).
More from this test: I/O & processes (1).
contextualizer-postfix-bindingRaku++ passesRakudo passes- 1
A postfix after a sigil contextualizer on a variable applies to the contextualized value:
@$p[0]is(@$p)[0]and%$x<a>is(%$x)<a>.
core-type-roles-and-iterator-defaultsRaku++ passesRakudo passes- 6
A role named like a quote keyword and followed by brackets,
my role Q[&f], is a parameterized role, not a quote.
More from this test: Lists & laziness (1), Classes, roles & the MOP (4).
corner-quote-not-a-declarationRaku++ passesRakudo passes- 1
A
class Qorsub qwritten inside a「…」string is text, not a declaration, so a laterQ「…」is still a quote.after
Q「class Q { }」, a laterQ「…」is a string
cro-family-clusterRaku++ passesRakudo passes- 7
A
subsetdeclaration accepts traits beforewhere, as insubset X of Str is export where /…/. - 8
A private method call takes colon-listop arguments, as in
self!setup: { }, :$enc.
More from this test: Hashes & sets (1), Lists & laziness (1), Classes, roles & the MOP (2), Regexes & grammars (3).
cro-install-engine-fixesRaku++ passesRakudo passes- 2
{ name <word> => … }is a block holding a call with an angle-quoted argument, not a subscript onname.{ delegate <foo> => $app }callsdelegate - 16
A
/inside<< … >>or« … »is a word character.
More from this test: Concurrency (4), I/O & processes (1), Lists & laziness (1), Classes, roles & the MOP (1), Regexes & grammars (1), Signatures & dispatch (7), Strings & Unicode (1).
cro-live-clusterRaku++ passesRakudo passes- 2
A pointy block is accepted as a listop argument (
get -> { … }), while infor @a -> $x { }the pointy block is the loop's own block. - 6
state => vis a Pair whose key isstate, not a variable declaration.
More from this test: Containers & assignment (1), Modules (1), Classes, roles & the MOP (2), Scoping & phasers (1), Signatures & dispatch (1).
data-dump-clusterRaku++ passesRakudo passes- 1
A quoted brace inside a code block interpolated into a string stays text and does not open or close the block.
"A{sym('{')}B"isA{B
More from this test: Classes, roles & the MOP (5), Stringification (1).
dbdish-native-and-list-defectsRaku++ passesRakudo passes- 9
[ v ]around a sigilless term is a term (an array composer), not a reduction metaoperator. inferred - 17
A
q:toheredoc unescapes\\to a single backslash.
More from this test: Containers & assignment (2), Lists & laziness (1), Native types & NativeCall (5), Classes, roles & the MOP (3), Regexes & grammars (3), Signatures & dispatch (1).
declaration-list-routine-itemsRaku++ passesRakudo passesdeclarator-doc-attachmentRaku++ passesRakudo does not pass- 1
A
#|declarator comment documents the next declaration or block however far below; blank lines and code that declares nothing leave it pending. - 2
A
#|comment attaches to the first declaration after it only, not to every declaration on that line. - 3
A
#=comment after several declarations on one line documents the last of them. - 4
An anonymous
sub {takes the#=comment just inside its opening brace.
dist-suite-quartetRaku++ passesRakudo passes- 8
qqwwhonours quote protection and processes escapes. - 9
In
<< … >>a colonpair word such as:TRACE(1)is a Pair, and in an enum declaration it seeds the numbering of the keys after it.<<:TRACE(1) DEBUG>>holds a Pair and a word - 19
$?LINEinterpolates in a double-quoted string, giving the current line number.
More from this test: Dates & times (1), Exceptions & control flow (1), I/O & processes (1), Classes, roles & the MOP (4), Operators (1), Everything else (1), Regexes & grammars (2), Scoping & phasers (1), Signatures & dispatch (2), Stringification (1), Types & coercion (2).
do-statement-modifier-then-outer-modifierRaku++ passesRakudo passeseco-blockers-2026-09-14Raku++ passesRakudo passes- 4
An enum's value list is a term and a trait may follow it.
enum Level <Off Fatal Error> does role { … } - 6
A declarator keyword can serve as a declared name, as in
constant class = Foo.constant class = Foo
More from this test: Exceptions & control flow (1), I/O & processes (2), Operators (2), Signatures & dispatch (1), Stringification (1).
ecosweep-900-batchRaku++ passesRakudo passes- 12
The
anondeclarator is supported. inferred
More from this test: Containers & assignment (1), I/O & processes (1), Lists & laziness (4), Numerics (1), Operators (2), Regexes & grammars (1), Signatures & dispatch (2), Stringification (1).
ecosweep-batch-fiveRaku++ passesRakudo passes- 1
A trait accepts an angle-bracket value.
is repr<CStruct>andis symbol<getuid>
More from this test: Hashes & sets (1), Native types & NativeCall (2), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Scoping & phasers (2), Signatures & dispatch (4), Types & coercion (2).
ecosweep-condition-binders-and-hyperRaku++ passesRakudo passes- 1
A statement condition accepts a sigilless binder after the arrow.
if EXPR -> \name { }
embedded-comment-guillemetsRaku++ passesRakudo passes- 1
An embedded comment (
#followed by a backtick and an opening bracket) takes any bracket pair, including«…»and a repeated opener such as«««…»»».
embedded-comment-repeated-bracketsRaku++ passesRakudo passes- 1
An embedded comment opened with a repeated bracket, `#`{{ … }}`, closes only on the closer repeated as many times, and a lone bracket inside is literal text, not a nesting level.
`#`{{ if $x { }}` is a complete comment
empty-before-pointy-blockRaku++ passesRakudo passes- 1
Emptyis a term, asnow,e,piandrandare, so a block or a pointy block after it belongs to the statement.for Empty -> $x { }runs
enum-and-type-terms-before-infixRaku++ passesRakudo passes- 1
A core enum member, a qualified enum member and a type name are terms before an infix, not listop calls taking what follows as arguments.
Less R+ Morereverses a+, andLess < More, More > Sameis two comparisons - 2
A spaced
<after a type name is the less-than infix whatever follows, while the tightInt<a>stays the postcircumfix.C < 2, 3 > 2is two comparisons
enum-colonpair-word-listRaku++ passesRakudo passes- 1
An enum whose
<< … >>word list sets a starting value with a colonpair declares every member as a term.enum numbers << :one(1) two three >>; for one, two { say .Int }parsesAlso held by
enum-arguments.
enum-does-role-and-archetypesRaku++ passesRakudo passes- 1
In an
enumdeclaration adoes Rmay come before the value list as well as after it.enum E does R <a b>parses, and inenum G does R2 (p => 1)R2 is the role, not a coercion of the pair list
More from this test: Classes, roles & the MOP (1).
enum-member-is-a-termRaku++ passesRakudo passes- 1
An enum member is a term, as a constant is, so an operator after it is an infix and not the start of a listop argument.
LO -1,LO ~ "x",north <= $vandif LO < $v { … }are infix expressions
More from this test: divergences (1).
enum-type-object-is-one-itemRaku++ passesRakudo passes- 2
An enum's or a subset's name before an infix is a term, so
MyEnum ~ "x"is a concatenation, not the coercionMyEnum(~"x").
More from this test: Types & coercion (2).
escaped-operator-nameRaku++ passesRakudo passes- 1
Inside the angle brackets of an operator's name
\<is<,\>is>and\\is\, only an unescaped>closes the name, and any other backslash stays.sub infix:<(\<&)>declares the operator(<&), andinfix:<\o/>is\o/
export-tags-and-package-stashesRaku++ passesRakudo passesMore from this test: Modules (4).
fallback-nil-and-slicesRaku++ passesRakudo passes- 2
A sigilless
constantis a term, so an operator after it is an infix, not a prefix on a listop argument.CSI ~ $sis a concatenation, not a call ofCSIwith~$s
More from this test: Containers & assignment (2), Lists & laziness (1), Classes, roles & the MOP (1).
flipflop-and-nil-termRaku++ passesRakudo passes- 1
Nilis a term, never a routine, soNil ~ 1andNil ff 1parse withNilas the left operand.
More from this test: Hashes & sets (1), Operators (2).
forward-types-and-statement-endRaku++ passesRakudo passes- 2
A block-closing
}at the end of a line ends the statement, so a following line that starts with.methodis a new statement.@a .= sort: { .chars }followed by a line.sum given …is two statements
More from this test: Types & coercion (1).
fresh100-parse-cluster-and-hostnameRaku++ passesRakudo passes- 2
A slurpy marker is allowed in a declaration list.
my ($key, *@path) = … - 4
A pointy parameter on a statement condition may be typed.
if EXPR -> str $name { } - 5
Statement modifiers chain: a
whenmodifier can be followed by aformodifier.$_ .= Str when Str for @list - 6
After a parenless call,
withis a statement modifier, not an argument.output-w with $w-firstcallsoutput-wwhen$w-firstis defined
More from this test: I/O & processes (1), Signatures & dispatch (1).
generic-role-bodiesRaku++ passesRakudo does not pass- 4
A statement-initial
T:Dis a type, not the labelT:, because a label needs whitespace after its colon.(do { Int:D }).^nameisInt:D - 5
foo:baris one undeclared name, whileso:baris stillsoapplied to a pair.foo:bar;is X::Undeclared::Symbols
More from this test: Classes, roles & the MOP (5), Scoping & phasers (1).
goal-operator-and-term-categoryRaku++ passesRakudo passes- 2
sub term:<name>defines a term:namewritten bare, with no parentheses and no arguments, calls it.
More from this test: Regexes & grammars (1).
grand-review-b-parserRaku++ passesRakudo passes- 1
In a double-quoted string, the name of an interpolated method call may contain hyphens.
"$n.is-prime()"interpolates the result of the call - 2
In a double-quoted string, a method call with parentheses interpolates after
$/,$!,$0,$<x>and ordinary variables alike, while a method name without parentheses stays literal text."$0.uc()"interpolates;"$!.message"keeps.messageliteral - 7
A class may be named
SSorss:SS.nis a method call, not a substitution. - 9
A statement-leading
{ $d.uc => 1 }is a Hash constructor, exactly as the same braces are in expression position. - 13
A
#inside a< >word list that follows a listop is a word, not a comment.any <# x>is a junction of the words#andx
More from this test: Compile-time errors (3), Lists & laziness (1), Regexes & grammars (2), Signatures & dispatch (1), Strings & Unicode (1).
guillemet-subscriptRaku++ passesRakudo does not pass- 1
%h«…»and%h<<…>>are the interpolating word subscript, the same as%h{«…»}: the words interpolate, an interpolated value splits on whitespace, and one word is a single key rather than a one-key slice.%h«a»==1compares the element - 2
In a
«…»list a single word is that one value, an interpolated variable splits on whitespace, a variable glued to text stays one word, a quoted"$y"stays one word, and{…}interpolates the block's value.«a»is"a";«$y»splits"a b"into two words - 3
A quoted number inside
«…», such as«"4.5"», goes throughval(). inferred
More from this test: Strings & Unicode (1).
has-in-sub-in-classRaku++ passesRakudo passes- 1
hasinside a sub nested in a class body parses without ahas-outside-a-class error.
hash-composer-prefixed-keyRaku++ passesRakudo passes- 1
Braces whose first key is behind a prefix operator or in parentheses,
{ +(X) => v }, compose a Hash, not a Block.constant %sqltype-map = { +(SQLT_CHR) => Str, … }is a Hash
hash-vs-block-and-caps-subsRaku++ passesRakudo passes- 1
WHAT,WHO,HOW,VAR,WHICHandWHYare routines, soWHAT {3 => 4}appliesWHATto the hash, whereas a capitalized type name before{(as inif Mu {…}) is followed by a block. - 2
A brace that looks like a hash composer (empty, or opening with a Pair or a
%variable) is a Block if it uses the topic at its own level.{3 => 4, :b}is a Hash;{3 => 4, :b($_)}and{3 => 4, :b(.Num)}are Blocks - 3
A topic used only inside a nested block does not turn the outer hash composer into a Block.
{ :out{ .contains: 'x' } }is a Hash whose value is a Block
heredoc-any-delimiterRaku++ passesRakudo passes- 1
The terminator of a
q:toheredoc may be written with any quote delimiter, including Unicode pairs and arbitrary characters.q:to«END»,q:to「END」,q:to「END」andq:to♥END♥all open a heredoc ending atEND - 2
Whitespace may separate a quote introducer carrying an adverb from its delimiter, so
q :to ''names the empty terminator and a blank line ends the heredoc body.q :to ''reads lines up to the first blank line - 3
A quote form keeps its meaning with a
« »delimiter:qw«a b»is a word list andqx«…»runs a shell command.qw«a b»is a list of two words - 4
Without an adverb,
q 'x'(space before the delimiter) is a call to a declaredsub q, exactly asq('x')is.
heredoc-sub-text-not-declaredRaku++ passesRakudo passes- 1
A heredoc's body is text: a
sub q($x) { … }written inside it declares nothing, so a laterq[…]in the file is still a quote.
heredoc-trailing-commentRaku++ passesRakudo passes- 1
Text after a heredoc introducer on the same line, such as a trailing comment or spaces, does not consume the heredoc's first body line.
after
q:to/A/; # a notethe body starts on the next line
highlight-namesRaku++ passesRakudo cannot run it- 2
A
-or'continues an identifier only inside it and only when a letter follows, so$n-1reads as$n - 1.$n-1is$n - 1
highlight-quotes-word-lists-shiftsRaku++ passesRakudo cannot run it- 2
The Unicode quote pairs
“…”,„…”,„…“and”…”interpolate,‘…’,‚…’,‚…‘and’…’do not, and「…」has no escapes.
http-simple-clusterRaku++ passesRakudo passes- 1
After
next,lastorredo, the wordswithandwithoutare statement modifiers, not loop labels.for 1, Int, 3, Int, 5 -> $x { next without $x; @kept.push($x) }keeps[1, 3, 5]
More from this test: Types & coercion (1).
http-useragent-clusterRaku++ passesRakudo passes- 2
A hash composer may contain a hyper method call, whose dot calls on the term before the hyper marker and not on the topic.
{ a => 1, b => $s.split(',')>>.trim }is a Hash, not a Block - 8
A phaser keyword followed immediately by a parenthesis is a routine call, not a phaser.
POST($u, |%n)calls the user'ssub POST
More from this test: Classes, roles & the MOP (1), Everything else (1), Regexes & grammars (3), Signatures & dispatch (1).
hyperwhateverRaku++ passesRakudo passes- 1
**in term position — after a comma, or as a bare listop argument — is aHyperWhatever, not the exponentiation infix.
More from this test: Operators (1).
hyphen-continues-a-name-in-a-replacementRaku++ passesRakudo passes- 1
A hyphen or apostrophe followed by a letter continues an identifier everywhere, including a variable name interpolated in the replacement half of
s///.$commit-sepin ans///replacement is one variable, not$commitfollowed by-sep
hyphen-ident-vs-subtractionRaku++ passesRakudo passes- 1
A
-or'continues an identifier only when a letter or_follows, never a digit, so$x-1is$x - 1.$x.elems-1is$x.elems - 1, not a method namedelems-1Also held by
ident-continuation-and-native-return-boundary.
indirect-declarationsRaku++ passesRakudo passes- 1
class ::(name)andsub ::(name)declare a type or routine under the name the expression evaluates to, and method names may be indirect too.
interp-postcircumfix-callRaku++ passesRakudo passes- 1
In a double-quoted string,
(…)directly after a variable is a call postfix:"$c(3)"calls the Callable in$cand interpolates the result, and"@a(0)"or"%h(0)"reachCALL-MEon the Array or Hash and die."$c(3)"interpolates the result of$c(3)
More from this test: divergences (1).
interpolated-hyper-method-chainRaku++ passesRakudo passes- 1
A hyper method call
».namejoins an interpolated variable's method chain in a double-quoted string, and the chain interpolates up to its last parenthesised call."%add».sort.map(*.fmt("%s %s"))"interpolates the whole chain - 2
In an interpolated method chain a hyper link is taken only where no bare
.namelink is still pending. inferred
invocant-smiley-and-role-multisRaku++ passesRakudo does not pass- 8
will complain { … }on asubsetdeclaration parses.
More from this test: Modules (1), Classes, roles & the MOP (2), Signatures & dispatch (4).
is-deeply-strict-and-anton-batchRaku++ passesRakudo passes- 9
A Whatever-curried subscript may be a slice.
(%r, %r).map(*<A B>)is((1, 2), (1, 2)).Seqfor%r = A => 1, B => 2, C => 3 - 12
A zero-width unspace is allowed before a subscript.
@row\[1]is@row[1]
More from this test: Hashes & sets (1), I/O & processes (3), Lists & laziness (1), Classes, roles & the MOP (3), Operators (3), Everything else (1), Regexes & grammars (2), Signatures & dispatch (1).
issue-131-underscore-identifierRaku++ passesRakudo passes- 1
_starts an identifier, so in"item-$_-x"the interpolated variable is the single name$_-x, not$_followed by the text-x.
More from this test: Compile-time errors (1).
issue-134-spaced-prefix-boolifyRaku++ passesRakudo passes- 1
A spaced
!!is the ternary's else-marker only while a??at the same bracket depth is waiting for one; anywhere else, including after a listop name, it is prefix boolify.say !! "Hi"boolifies"Hi"and says it;1 ?? Nil !! Anykeeps its else-marker
issue-137-escaped-quote-in-qq-blockRaku++ passesRakudo passes- 1
A backslash-escaped quote in a single-quoted string inside a
{ }block of an interpolating string does not end that string, so the block and the rest of the outer string are kept."a {'it\'s'} z"is nota
issue-198-titlecase-sub-block-argRaku++ passesRakudo passes- 1
A capitalized sub name followed by a block calls the sub with the block, when the unit (above or below) or a used module declares a sub of that name and no type has it.
sub Foo(&bar) { bar }; Foo { say "bar" }callsFoowith the block
issue-223-224-pdf-content-declarationsRaku++ passesRakudo passes- 2
A
subsetdeclaredof ::?CLASS:Dorof ::?ROLE:Dtakes theis export(…)trait orwhereclause that follows.my subset S of ::?CLASS:D is export(:Tag)parses
More from this test: Signatures & dispatch (1).
issue-43-private-method-quoted-nameRaku++ passesRakudo does not pass- 2
A quoted private method name must be followed by parentheses:
self!"$m"without()is not a method call. inferred
More from this test: Classes, roles & the MOP (1).
issue-65-interp-quote-in-postfixRaku++ passesRakudo passes- 1
In a double-quoted string the argument list of an interpolated method call is code, so a quote character inside it does not end the string.
say "\"@strings.join('"|"')\""interpolates the joined array between two quotes
issue34-pointy-destructureRaku++ passesRakudo passes- 1
A pointy binder on a statement condition (
if/elsif/else,while,given/with/without) accepts a full signature, destructuring sub-signatures included.if $result.errors -> @ ($head, *@tail) { … }
issue37-fez-zef-installRaku++ passesRakudo cannot run it- 1
A fused angle-bracket operator spelling tight after a colonpair name is the pair's angle value.
:replacement<->is the pairreplacement => "-" - 7
A coercion type with empty parentheses is allowed in a variable declaration.
my Hash() %options
More from this test: Containers & assignment (1), Modules (3), Regexes & grammars (1), Types & coercion (1).
js-backend-framework-clusterRaku++ passesRakudo passes- 2
A declared sub whose name is a word infix such as
divis called when the name appears in term position. inferredwith
sub divin scope,say div "x"calls the sub rather than parsing assay() div "x" - 3
A declared sub whose name is a quote keyword wins over the quote construct unless an adverb follows the name. inferred
More from this test: Operators (1), Scoping & phasers (2), Signatures & dispatch (1), Strings & Unicode (1), Types & coercion (1).
keyword-named-callable-paramRaku++ passesRakudo passes- 1
A keyword written tight against
(calls a&loopparameter, asub loopor amy &loopof that name.sub count(&loop) { loop({ $n++ }) }calls the block
More from this test: Compile-time errors (1).
keyword-named-routine-callRaku++ passesRakudo passes- 1
A routine the program names after a block prefix (
start,do,try,gather,quietly,once,react,supply) is called with its arguments when the name is glued to a paren, while with a space or before a block the word is still the prefix.sub start($x) { $x + 1 }; say start(5)says6 - 2
A routine named after a keyword (
start,if,repeat) is recognized in a call even when it is declared further down the file. inferred
keyword-pair-keysRaku++ passesRakudo passes- 1
A fat arrow autoquotes any identifier on its left, declarator keywords included.
method => 'GET'is a Pair
listop-angle-words-unicodeRaku++ passesRakudo passes- 1
A
<…>or«…»word list straight after a listop name keeps its words as written, including characters that are Unicode operator spellings.c <a−b>passes the word with U+2212, andc <×>passes×
More from this test: Types & coercion (1).
listop-capture-contextualizerRaku++ passesRakudo passes- 1
A list operator followed by the contextualized match capture
@$<name>takes it as its argument.make @$<seg>.map(~*).join('|')is one call tomake;say @$<x>.elemsprints the count
listop-star-method-vs-multiplicationRaku++ passesRakudo passes- 1
After a listop name,
*followed tightly by.methodis a WhateverCode argument (say *.abs,map *.abs, @a), while an ordinary infix*remains multiplication.
listop-takes-a-brace-composerRaku++ passesRakudo passes- 1
In a listop's argument position
%{ … }and@{ … }are composers, since there is no left operand for an infix%and the brace is not a block.make %{'k' => 1}passes the hash tomake
listop-terms-and-empty-container-failuresRaku++ passesRakudo passes- 1
A named inline
class Foo {…}is a term, sosay class Foo {}passes it as one argument. - 2
[∞]is a one-element array literal, not a reduction.
More from this test: Hashes & sets (1), I/O & processes (1), Lists & laziness (4).
lizmat-containers-and-dispatchRaku++ passesRakudo passes- 3
:!existsis accepted on a pseudo-package stash subscript.
More from this test: Hashes & sets (1), Classes, roles & the MOP (2), Signatures & dispatch (1), Strings & Unicode (1).
loose-prefixes-and-listop-adverbsRaku++ passesRakudo passes- 2
notcan begin a term, sosay not 0passesnot 0tosay.
More from this test: Lists & laziness (1), Operators (1).
math-nintegrate-fixesRaku++ passesRakudo passes- 2
In a colonpair that starts with digits, the digits are the value and the rest is the key, even when the rest looks like a radix prefix or an exponent.
:0dimensionisdimension => 0,:0xabisxab => 0,:0e5ise5 => 0
More from this test: Regexes & grammars (1), Signatures & dispatch (3), Types & coercion (1).
method-call-shapes-and-core-tablesRaku++ passesRakudo passes- 2
[+].^namecalls the meta-method on the result of the zero-operand reduction. - 3
$obj.*m;is a.*method call, not the start of anm;…;match.
More from this test: Containers & assignment (1), Numerics (1), Classes, roles & the MOP (9), Operators (1), Strings & Unicode (1).
method-name-is-not-a-listopRaku++ passesRakudo passes- 1
A method name is never a listop, so a
<after.allor.anyis the less-than operator and not the opener of a word list.(1, 2).all < 5is a comparison
modinfo-ecosystem-clusterRaku++ passesRakudo passes- 1
#is a word inside a bare< … >word list, not the start of a comment.<# name version>is("#", "name", "version") - 2
The Latin-1 letters below U+00C0 (ª, µ, º) and the Lm modifier letters (ˆ, ˇ) are identifier characters, usable as colonpair keys.
my %h = (:µ("mu")); %h<µ>ismu - 4
A regex literal may stand on both sides of the flip-flop operator
ff.<a START x END b>.grep({ / START / ff / END / })isSTART x END - 5
A method may be declared in the
dispatch:<…>category.method dispatch:<.?>(\name, |c) is raw { Nil }parses in a class body - 10
with/withouttake part in an if-chain and may be followed byelsifandelse.do with $g { "with" } elsif $a { "elsif" } else { "else" }giveselsiffor(Any, 1) - 18
sub rule(…)declares a routine namedrule, not a grammar rule.sub rule(Int $n --> Str) { '-' x $n }; rule(3)is--- - 20
A
{ … }that opens with a computed key followed by=>is a Hash composer, while one that opens with a listop call taking a pair is a Block.{ $d.name => True }is a Hash;{ dt month => 0 }is a Block
More from this test: Hashes & sets (1), I/O & processes (1), Lists & laziness (1), Operators (1), Regexes & grammars (3), Scoping & phasers (2), Signatures & dispatch (3), Types & coercion (1).
module-fixes-batch-1Raku++ passesRakudo passes- 4
:16(...)is a radix conversion, so{ :16($_) }is a code block, not a hash composer.
More from this test: Lists & laziness (1), Regexes & grammars (1), Signatures & dispatch (1).
module-quote-word-sub-scopeRaku++ passesRakudo passes- 1
A routine named like a quote word makes
q{…}a call wherever the routine is in scope.
More from this test: Modules (1).
module-type-before-pointy-blockRaku++ passesRakudo passes- 1
A class, role or grammar that a
used module declares is a type name while the importing file is parsed, so it is a term before a pointy block.for Cro::Uri, Cro::Iri -> $parser { … }loops over the two types
More from this test: Compile-time errors (1).
non-ascii-names-bind-and-typeRaku++ passesRakudo passes- 1
A scalar whose name starts with a non-ASCII letter is an ordinary variable, so
:=binds it as an alias rather than copying.after
my $ч = 1; my $y := $ч; $ч = 2,$yis an alias of$ч, not a copy holding 1
More from this test: Types & coercion (1).
non-ascii-names-in-regex-and-twigilsRaku++ passesRakudo passes- 2
A twigil may be followed by a name starting with any Unicode letter, as in
has $.чand$^ч.say { $^ч + $^ш }(1, 2)andclass A { has $.ч = 1 }; say A.new.чwork
More from this test: Regexes & grammars (2).
non-ascii-type-names-in-parser-guessesRaku++ passesRakudo passes- 1
A name whose first letter is non-ASCII and not lower-case is parsed as a type name for the
:Dsmiley, a parameterization,Foo .newand the indirectnew Foo:.class Éx {}; say Éx.new ~~ Éx:Dis a type smiley, andmy $o = new Еx:is accepted - 2
A CJK ideograph that carries a numeric value is a letter in an identifier, not a numeral.
my class 万 {}declares a class - 3
?&namein term position is the prefix?applied to&name, for a name in any script.sub е { }; say ?&е, 1parses
More from this test: Classes, roles & the MOP (1).
non-breaking-space-is-lexer-whitespaceRaku++ passesRakudo passesone-arg-rule-and-qw-allomorphsRaku++ passesRakudo passes- 1
Only the angle forms
<8 9>,«8 9»and<<8 9>>make allomorphs of numeric-looking words;qw,qww,qqw,qqwwand the:w/:wordsquote adverbs give plain Str.qw<8 9>holds two Str;<8 9>holds two IntStr
More from this test: Lists & laziness (2).
only-ellipsis-bracketed-infixRaku++ passesRakudo passes- 5
A user-declared
sub infix:<…>spelled with ASCII operator characters is lexed as one token wherever it is used.with
sub infix:<%%%>declared,5 %%% 2calls it
More from this test: Hashes & sets (2), Operators (2), Signatures & dispatch (1).
open-modes-bind-end-shiftRaku++ passesRakudo cannot run it- 4
x +< nwith a spaced identifier as the shift amount is a shift, while+<a b>and+< foo bar >remain prefix+on a word list.
More from this test: Containers & assignment (1), I/O & processes (1), Scoping & phasers (1).
operator-name-quoted-guillemet-wordRaku++ passesRakudo passes- 1
A quoted word inside the
« »list of an operator name is the word without its quotes.sub infix:«"z"» (…)declares the operatorz, so42 z 42and"42 z 42".EVALreach it
operator-strictnessRaku++ passesRakudo passes- 2
+<and~<after a term are the infix shift operators, while after a listop name~<2>is prefix~on a word list.1 +< "2"is a shift;is-deeply ~<2>, '2'passes prefix-~of a word list
More from this test: Operators (1), Stringification (1).
package-declaration-is-termRaku++ passesRakudo passes- 1
A package declaration that starts a statement is a term an infix may follow on its line.
class A {} === Aandclass D {} ~~ Dparse, andclass {} ~ "x"is one expression
package-name-adverbsRaku++ passesRakudo passes- 1
A package declaration's name may carry adverbs, as in
module M:ver<0.19> { ... }, and the braces are still the package body.
paren-is-not-a-quote-delimiterRaku++ passesRakudo passes- 1
q,qq,Q,mandrxfollowed immediately by a parenthesis are routine calls, not quotes.say q("11000")is "Undeclared routine q" unless asub qis declared - 2
With whitespace before it, a parenthesis is a quote delimiter; every other bracket pair delimits with or without the space.
rx (o)is a Regex;ss (foo) = 'bar'is a substitution
paren-segment-statement-modifierRaku++ passesRakudo passes- 1
Every
;segment of a parenthesised list takes a statement modifier, not only the first.($n++; last if $n > 3) for 1..*parses
paren-signature-beside-declared-set-opRaku++ passesRakudo passes- 1
A user-declared operator spelled
(…), such asinfix:<(|)>, yields to a signature after a routine declarator and to an argument list when glued to a name, and is the operator only when spaced between terms.proto sequence(|) {*}keeps its(|)signature in a file that declaressub infix:<(|)>
paren-statement-listRaku++ passesRakudo passes- 1
The inside of
( … ),%( … ),@( … )and$( … )is a statement list: a}that closes a line ends a statement there, and a statement such asfororifmay stand in any segment.(for 1 {}; 5),(1; if 1 { 2 })and$(if 1 { 2 })parseAlso held by
paren-statements.
parse-unicode-and-shapesRaku++ passesRakudo passes- 1
Any Unicode letter, including Indic scripts, may be used in an identifier or a colonpair key.
:ह<hi>andmy $ह = 5parse - 2
A hyphen joins an identifier to a following non-ASCII letter, in code and in string interpolation alike, while a hyphen before a digit does not join.
"v=$markup-Δ"isv=7; with$a = 3,"$a-1"is3-1 - 4
A
givenorwithblock may be used as an expression and evaluates to its block's value.( given 2 { when 2 { "two" } } )istwo;( with 3 { $_ * 2 } )is6 - 6
A double-angle colonpair value
:key<<…>>interpolates and splits into words, where the single-angle form does not interpolate.:author<<Richard Hainsworth, aka finanalyst>>
More from this test: Modules (1), Signatures & dispatch (1).
pdf-family-2026-09Raku++ passesRakudo passes- 1
A declared
sub prefix:</>takes the slash away from the regex literal for the rest of the file, so a leading/is that prefix operator./'Outlines'applies the user'sprefix:</>to the string - 2
set,bagandmixfollowed by<…>open a word list, so'and"inside it are ordinary word characters. - 3
A sigilless term shadows a quote keyword: declaring
\mmakesma name rather than a match opener, within the block it was declared for. - 4
A package declarator keyword can be used as a term, as in
package.^add_method(…). - 6
After a statement-modifier
withorwithout, a%opens a term, so$num += $_ with %%Roman{'I'}reads%%Roman{…}as a hash contextualizer applied to%Roman{…}rather than an infix. inferred$num += $_ with %%Roman{'I'}adds the element - 8
A declaration list may hold typed sigilless items, as in
my (UInt \a, \b) = …. - 9
Braces holding pairs with a trailing
;are still a hash composer, while a second statement inside makes them a block. - 10
Routine declarations can be strung together with commas,
sub a {…}, sub b {…}, forming a list of the routines. - 12
$.name:sym<x>(…)calls the method whose name is the proto-regex candidate namename:sym<x>. - 13
&.name(…)isself.name(…). - 30
A leading dot after a prefix operator opens the operand's term, a method call on the topic.
More from this test: Containers & assignment (8), Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Modules (1), Numerics (1), Classes, roles & the MOP (14), Operators (1), Regexes & grammars (3), Scoping & phasers (4), Signatures & dispatch (9), Types & coercion (3).
perl5var-legal-readingsRaku++ passesRakudo passes- 1
Forms that merely look like Perl 5 punctuation variables but have a Raku reading —
my $;, the anonymous slot inmy ($a, $, $b),$ = 5,$.x,%!h,$?FILE— are legal and raise noX::Syntax::Perl5Var.my ($a, $, $b) = 1, 2, 3leaves$a1 and$b3
phaser-name-called-like-routineRaku++ passesRakudo passes- 1
A phaser's name with a tight paren is a call of a routine of that name, which nothing declares, and does not run the phaser.
FIRST($_ * 10)is a call to an undeclared routineFIRST
pointy-block-for-modifierRaku++ passesRakudo passes- 1
A pointy block in front of a
forstatement modifier is the loop's body and runs once per element, also underdoor inside parentheses.do -> $x { print "ran " } for 1..2runs the block per element instead of yielding two Blocks
More from this test: Hashes & sets (1), Signatures & dispatch (3).
private-method-named-regexRaku++ passesRakudo passes- 1
A private method may be named
regex,ruleortoken:method !regex() { … }declares it andself!regexcalls it.
process-scope-and-sigilless-whileRaku++ passesRakudo passes- 2
whileanduntilaccept a sigilless loop variable after the arrow.while nxt() -> \r { @seen.push(r) }
More from this test: Everything else (1), Scoping & phasers (1), divergences (1).
proto-multi-as-termRaku++ passesRakudo passes- 1
A
proto subormy multi subdeclaration is a term and may be used in expression position, such as an argument.use CLI::Version $?DISTRIBUTION, proto sub MAIN(|) {*}, 'long'
More from this test: Signatures & dispatch (1).
q-bare-punctuation-delimitersRaku++ passesRakudo passes- 1
The
qfamily of quotes takes a punctuation delimiter such as+,*,^or=when it sits tight against the keyword and closes on the same line, whileq=>1stays a pair.q+{{planet}}+,q*…*,qq^…^,Q=…=andqw+…+are quotes
More from this test: divergences (1).
q-quote-semicolon-comma-dotRaku++ passesRakudo passesqq-closure-holds-delimiterRaku++ passesRakudo passes- 1
A
{…}closure inside aqq-family quote with the closure feature (qq,qqw,qqx,q:c,Q:c,qq:s) is Raku code, and a string in it may hold the quote's own closing delimiter.qq[a {"]"} b]isa ] b - 2
In a
qqquote with a Unicode delimiter an interpolation chain is read as code, and the quote's closing delimiter ends a variable name.qq「@a.join("」")」andqq「a $x」parse - 3
A lone
{quote delimiter makes every inner{a nesting step even under:c, so no closure is interpolated.qq:c{a {1+1} b}isa {1+1} b - 4
A doubled
{{quote delimiter frees the single{for closures, while a nested{{…}}stays text.qq{{a {1+1} b}}isa 2 b
qqw-interpolates-then-splitsRaku++ passesRakudo passes- 1
An interpolating word list without quote protection (
qqw,qq:w,q:w:s,Qw:c) is one interpolated string that is split into words afterwards, so an interpolated value's words become separate words and a closure with blanks in it is evaluated whole.qqw[a $x b]with$xholdingp qdoes not keepp qas one word;qqw[a {1 + 1} b]evaluates the closure - 2
In
qqw,%h<k>and&f()interpolate, and an escaped blank such as\tsplits words.qqw[a\tb]is two words - 3
qqww,«…»and<<…>>make one word per literal run and per interpolation: a closure, a call's arguments and$( … )are each one unit, and a literal run splits once its escapes are applied.qqww[a {"x"} b]evaluates the closure whole - 4
A quote's feature adverbs reach the words of a word list.
qqw:!s,qww:c,Qw:sandqqw:!bare honoured - 5
A word-list quote form with
:tois a heredoc word list, interpolated and split.qqw:to/END/gives words
qualified-constant-before-blockRaku++ passesRakudo passes- 1
A package-qualified constant named before a statement's block is the constant, a term, not a call that takes the block.
for RakuPress::Schema::WP-TABLES -> $t { … }iterates the constant
More from this test: Compile-time errors (1).
quote-names-as-type-namesRaku++ passesRakudo passes- 1
An identifier that spells a quoting construct (
Q,q,qq,qw,qx,m,rx,tr) is a name wherever the syntax calls for a name: afteris,doesorreturnsin a declaration header and afterclass,module,packageorenum.class R is Q { … }inherits from a class namedQ - 2
Outside a declaration header, a routine named
isfollowed byq{…}still takes a quote as its argument.is q{abc}, 'abc'compares the stringabc
quote-word-sub-scopeRaku++ passesRakudo passes- 1
A sub named after a quote form (
sub s,sub q,sub tr) beats the quote construct only from its declaration onward and only inside the block that declares it.a
sub sdeclared in a block near the bottom of a file leavess///above it a substitution
quote-word-vs-non-ascii-nameRaku++ passesRakudo passes- 1
A quote word (
Q,q, …) directly followed by a non-ASCII identifier character, a combining mark included, is the start of an identifier, not a quote form with that character as delimiter.class Q̲x { }; say Q̲x.^namenames the class - 2
Declaring a type whose name merely begins with a quote word leaves the quote word a quote form.
class Q̲x { }; my $t = Q { a: b }is still aQquote
qw-backslashed-delimiterRaku++ passesRakudo passes- 1
A
qword list —qw,q:w,qww,q:wwand the:vforms, over ASCII and Unicode delimiters — hasq's escapes: a backslashed delimiter is the delimiter and\\is one backslash.qw[a \] b]is("a", "]", "b") - 2
With a repeated quote delimiter, a backslash escapes the closer only as a whole run.
q[[a \]] b]]isa ]] b; inq{{a \} b}}the\}stays - 3
A
"…"(or“…”) span inqww,Qwworq:wwis aqqstring, as inqqww: it interpolates and takes escapes.qww[a "$x\t" b]interpolates$xand reads\tas a tab
qw-val-adverbRaku++ passesRakudo passes- 1
qw:v[…](the:v/:valadverb) makes allomorphs of its words; the q-family without it gives plain Str.
rakudo-t-language-gaps-1Raku++ passesRakudo passes- 2
Q«…»nests its delimiters.Q«a«b»c»is one string
More from this test: Compile-time errors (1), Containers & assignment (1), Lists & laziness (1), Classes, roles & the MOP (2), Operators (1), Everything else (1), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Stringification (2), Strings & Unicode (1).
rakudo-t-language-gaps-2Raku++ passesRakudo passes- 15
The empty contextualizers
$(),@()and%()keep their 6.c meaning under 6.c. inferred
More from this test: Compile-time errors (1), Exceptions & control flow (2), Hashes & sets (1), Lists & laziness (2), Operators (2), Regexes & grammars (4), Scoping & phasers (1), Signatures & dispatch (1).
rakudo-t-language-gaps-3Raku++ passesRakudo passes- 11
qqw{…}nests inner braces.
More from this test: Compile-time errors (2), Containers & assignment (1), Lists & laziness (2), Modules (1), Classes, roles & the MOP (1), Operators (2), Regexes & grammars (1), Scoping & phasers (1), Signatures & dispatch (1), Stringification (1).
rakudo-t-language-gaps-6Raku++ passesRakudo passes- 5
A tight adverb on a declared term is that term's named argument, so adverbed terms nest.
FOO:to(FOO:of(5))
More from this test: Lists & laziness (1), Operators (2), Regexes & grammars (1).
rakuglaze-round-6Raku++ passesRakudo passes- 1
After the name of a declared routine, a spaced
+or-is a prefix on the routine's argument, not an infix. - 6
A type named
Reqis read as the type, not as the reversed operatorRapplied toeq.
More from this test: Concurrency (1), Exceptions & control flow (1), Hashes & sets (2), I/O & processes (1), Lists & laziness (2), Classes, roles & the MOP (1), Regexes & grammars (1), Scoping & phasers (1).
rakupp-upgradeRaku++ passesRakudo cannot run it- 3
tryis a statement prefix that takes a trailing statement modifier inside itself, so$j = try EXPR unless $jstill assigns when the condition skips the statement, storing an empty Slip.$j = try EXPR unless $joverwrites a true$jwith the skipped statement's empty Slip
regex-after-listop-nameRaku++ passesRakudo passes- 1
A
/after a bare routine name and whitespace opens a regex, while a tightw/2, or a/after a term-word or a declared constant, is division.test-hi / << b.r >> /, …passes a regex as the first argument
regex-capture-marker-and-mirrored-quotesRaku++ passesRakudo passes- 2
A Unicode opening-punctuation quote delimiter closes with its Bidi-mirrored character, not with the next codepoint.
⦍U+298D closes with⦐U+2990,⦏U+298F with⦎U+298E,[U+FF3B with]U+FF3D
More from this test: Regexes & grammars (1).
regex-unicode-bracket-delimitersRaku++ passesRakudo passes- 3
Unicode quotes — ‘…’, “…”, 「…」 and the low-9 forms
‚…’and„…”— nest on their own opener wherever they appear, inside a regex too./ 「a 「b」 c」 /matches the whole texta 「b」 c, not onlya 「b
More from this test: Regexes & grammars (2).
return-call-to-keyword-named-subRaku++ passesRakudo passes- 1
Once a unit declares a routine named after a keyword, a call written tight against its paren is that call, after
returntoo.with
sub hasdeclared,return has("a")returns the call's value
return-in-comma-listRaku++ passesRakudo passes- 1
returnis a term and may appear as an element of a comma list or argument list.nqp::if(cond, (return 'early'), return '')parses
return-is-a-list-operatorRaku++ passesRakudo passesreturn-listop-in-parensRaku++ passesRakudo passes- 1
returnis a listop: inside parentheses too its operand is the whole comma list.(return (1,2), 9)returns both(1, 2)and9
return-operand-keyword-textRaku++ passesRakudo passes- 1
A
returnwritten as an operand keeps its argument when the argument is a string whose text is a keyword, or starts with a prefix likenot.f($i) or return "no"returns"no"
roast-3log-batch2Raku++ passesRakudo passes- 1
use v6c(no dot) selects 6.c, asuse v6.cdoes.
More from this test: Exceptions & control flow (1), Modules (1), Numerics (1), Classes, roles & the MOP (6), Everything else (1), Regexes & grammars (5), Scoping & phasers (1).
roast-sweep-parseRaku++ passesRakudo does not pass- 5
A placeholder variable in the body of a
whileorrepeatloop takes the condition's value. inferredrepeat while $b < 10 { $tracker = $^a; $b++ }leaves$trackerTrue
More from this test: Compile-time errors (5), Classes, roles & the MOP (2), Operators (1).
scalars-nil-junction-complex-dateRaku++ passesRakudo passes- 4
∞is a term, so a/after it is division:∞/∞is an arithmetic expression, not the start of a regex.
More from this test: Concurrency (1), Containers & assignment (1), Dates & times (1), Numerics (3), Classes, roles & the MOP (1), Operators (1), Everything else (1), Stringification (1), Types & coercion (1).
self-as-pair-keyRaku++ passesRakudo passes- 1
selfdirectly before=>is an autoquoted pair key, so(self => 1)is legal outside a method and raises noX::Syntax::Self::WithoutObject.
semicolon-arglist-segmentsRaku++ passesRakudo does not pass- 1
A
;inside an argument list makes it multi-dimensional: each segment is one positional argument and is always a List. - 2
A trailing
;in an argument list adds a final empty segment. - 3
A named argument written inside a
;segment of an argument list is absorbed by that segment's list and is not passed to the call as a named argument.
sigilless-names-token-and-destructureRaku++ passesRakudo passes- 1
A name that merely starts with
token,ruleorregex, or that follows a\, is not a regex declarator.-> Map \labels_, Int \token_ { … }parses
More from this test: Containers & assignment (1).
sigilless-traits-and-container-assignRaku++ passesRakudo passes- 1
A sigilless declarator, typed or not, may carry traits before its initializer.
my constant \COLORS is export(:colors) = %( … )
More from this test: Operators (2).
slang-seamsRaku++ passesRakudo cannot run it- 1
A slang registered through
$*LANG.define_slangthat adds anumber:sym<X>orvalue:sym<X>token makes matching source parse as the literal its action produces. - 2
A
<(/)>in a slang's entry token trims what is captured without changing what is matched. - 3
A slang overriding
identifiercan let a name such aspass?name a routine. - 4
A slang overriding
sigilless-variablecan makemy 👍 = 42declare a sigilless variable, and👍 => vthen keys the pair on the variable's value. - 5
A slang overriding
pointy-block-startercan makeλopen a pointy block, and one overridingroutine-declarator:sym<sub>can makelambdadeclare a sub. - 6
A slang overriding
term:sym<identifier>andmethodopcan makefoo (1, 2)a two-argument call. - 7
A slang's tokens apply to the source below its
usestatement, so text only the slang can lex, such as₅₅, is read after the pragma has taken effect.
slices-trans-and-exact-sequencesRaku++ passesRakudo passes- 2
A bare
%in term position is an anonymous empty Hash, while as an infix it is modulo.% .classify-list: …builds its result in a fresh hash
More from this test: Hashes & sets (3), Lists & laziness (1), Regexes & grammars (1), Strings & Unicode (2).
socket-read-and-stringyRaku++ passesRakudo passes- 5
A statement prefix such as
tryordotakes the whole remaining expression, through the comma list and the looseand/or.try bad() or $reached = Trueleaves$reachedFalse;(do 0 or 5)is 5;[try bad(), 2].elemsis 1
More from this test: I/O & processes (3), Stringification (1).
sparrow6-blockersRaku++ passesRakudo passes- 4
A word list written tight after a routine name subscripts the call's result, while a spaced one is an argument list.
cfg<name>iscfg()<name>
More from this test: Concurrency (2), I/O & processes (1).
stacked-user-postfixesRaku++ passesRakudo passesstash-exists-answersRaku++ passesRakudo passes- 2
The
:existsadverb applies toOUR::<$x>andFoo::<$x>themselves, not to an enclosing call.say OUR::<$z>:existsprints a Bool, not(Any)exists => True
More from this test: Scoping & phasers (1).
stash-term-before-pointy-blockRaku++ passesRakudo passes- 1
A stash term — a package name with a trailing
::— before a block or a pointy block is a term, not a routine that takes the block as its argument.for A::, B:: -> $pkg { … }compiles and iterates - 2
A lone stash term given to
foris iterated entry by entry, as a hash is.
More from this test: Compile-time errors (1).
statistics-distributions-clusterRaku++ passesRakudo passes- 3
A Unicode identifier before
=>in an argument list is a named argument, not a positional Pair.
More from this test: Lists & laziness (1), Classes, roles & the MOP (1), Signatures & dispatch (2).
strict-separation-false-positivesRaku++ passesRakudo passessuperscript-call-but-bool-redo-copy-and-friendsRaku++ passesRakudo passes- 1
A superscript power on
*followed by a call,*²(4), is a call of the curried power, not* ** 2(4).*²(4)calls the WhateverCode with 4
More from this test: Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Signatures & dispatch (2), Stringification (1), Types & coercion (1).
term-or-operatorRaku++ passesRakudo passes- 2
A type's name is a term, not a list operator:
Int 5is two terms in a row rather than the coercionInt(5).Int 5,Int $xandInt :fooare refusedAlso held by
type-name-is-a-term.
tilde-is-a-quote-delimiterRaku++ passesRakudo passes- 1
~is a legal delimiter for every quote form, including substitutions.q~…~ands~^(.).~$0.~parse
tls-handshake-chain-and-identityRaku++ passesRakudo passes- 2
orwithafterif/elsifis part of the same chain and runs only when no earlier branch was taken.if !$!ssl {} elsif … {} orwith $!connected-promise {}is one chain
More from this test: Operators (3), Signatures & dispatch (1).
todo-small-divergences-2026-10-11Raku++ passesRakudo does not pass- 1
A one-word q-family word list (
qw[a],qqw[a],qqww[a],q:w[a]) is a one-element List, while<a>,«a»and the:vforms give the word itself. - 2
A quote form takes a quote or Unicode delimiter after a blank without an adverb.
qq 「…」,q "…",qw «…» - 14
f - 5isf(-5)whensub fis declared later in the file.f - 5isf(-5)
More from this test: Containers & assignment (1), Classes, roles & the MOP (2), Operators (2), Scoping & phasers (1), Signatures & dispatch (2), Strings & Unicode (1), Types & coercion (4), divergences (1).
top100-chunk-b2b3-2026-09-03Raku++ passesRakudo passestop100-refresh-2026-09-03Raku++ passesRakudo passes- 4
Only a block's closing
}at the end of a line ends the statement; after a subscript's}a statement modifier on the next line still attaches.return %h{$k}followed on the next line byif %h{$k}:exists;is one statement
More from this test: Containers & assignment (1), Signatures & dispatch (1), Stringification (1), Types & coercion (1).
top100-roots-2026-09-02Raku++ passesRakudo does not pass- 19
The angle-bracket value of a colonpair may contain
#, which is a literal character there.:name<#> - 20
self<ms>is a subscript onself, not the start of anm:sregex. - 24
with(EXPR)written tight against its parenthesis is a call to a routine namedwith.
More from this test: Containers & assignment (1), Exceptions & control flow (2), Lists & laziness (1), Modules (1), Native types & NativeCall (3), Numerics (1), Classes, roles & the MOP (4), Regexes & grammars (3), Scoping & phasers (1), Stringification (1), Strings & Unicode (2), Types & coercion (6).
trait-after-initializer-refusedRaku++ passesRakudo passes- 2
doesandbutafter a declaration's initializer compile, being infixes on the initial value.
More from this test: Compile-time errors (1).
undeclared-operator-nameRaku++ passesRakudo cannot run it- 3
A backslash inside the
«…»of an operator's name escapes the character after it. inferred
More from this test: Compile-time errors (1), Operators (1).
unicode-bracket-quote-nestsRaku++ passesRakudo passes- 1
A quote word with a Unicode bracket for its delimiter nests the pair, for every pair it accepts — 「」 ⟨⟩ 【】 () ‘’ “” «» and the rest.
Q「outer 「x」 y」is one string - 2
A repeated Unicode bracket opener is one delimiter of a quote word.
Q「「a」b」」is one string - 3
With a Unicode bracket delimiter
qhas its escapes —\\and a backslashed delimiter — while a bareQstays escape-free.
unicode-ops-quadraticRaku++ passesRakudo passes- 2
×(U+00D7) and÷(U+00F7) are operator symbols, not identifier letters.
More from this test: Operators (2).
uninit-warning-names-and-placeRaku++ passesRakudo cannot run it- 3
Int ~ "x"is the infix~with the type object on its left, not the coercionInt(~"x").
More from this test: Exceptions & control flow (1), Numerics (2).
unspace-after-block-closeRaku++ passesRakudo passes- 1
An unspace (a backslash before the line break) after a block's closing
}joins the next line to the statement, for infix operators, method calls and statement modifiers.do {1} \followed on the next line by+ 2includes the addition
user-terms-across-unitsRaku++ passesRakudo passes- 2
A user-declared term's name may end in
?or!.sub term:<no-commas?>besidesub no-commas, used asno-commas?
More from this test: Modules (1).
whatever-hyper-method-after-listopRaku++ passesRakudo passes- 1
A
*that opens a list operator's arguments and is followed by a tight hyper method call is a WhateverCode, not multiplication.say *>>.fmt("%02x")(42)parses
while-destructure-and-candoRaku++ passesRakudo passes- 1
while EXPR -> SIGNATUREaccepts a destructuring sub-signature, named or positional.while @q.shift -> (:key($k), :value($v)) { … }unpacks each Pair
More from this test: Signatures & dispatch (1).
word-list-escapes-comma-op-forward-typeRaku++ passesRakudo passes- 1
Inside a bare
< … >word list a backslash escapes<,>and\, any other backslash sequence keeps both characters, and{/}are ordinary word characters.\<and\>are the literal angles,\\is one backslash
More from this test: Operators (1), Scoping & phasers (1).
wordop-name-called-as-listopRaku++ passesRakudo passes- 1
An identifier written tight against
(is a call, never an infix, even when it names a word operator such asmin.say min(3, 9)prints the result ofmin(3, 9), not a blank line
wordquote-colonpair-bracketRaku++ passesRakudo passes- 1
In a word list with quote protection (
« »,<< >>,qww,qqww,Qww,q:ww,Q:ww) a colonpair is code and its value group belongs to it.« :x[1, 2] »is:x([1, 2]) - 2
In a quote-protected word list a colonpair may start mid-word, and the character after its value starts a new word.
a:bis("a", :b)and:x[1,2]yis(:x([1, 2]), "y") - 3
Without quote protection (
qw,q:w,qq:w,<…>) the words of a word list split at blanks and no colonpair forms. - 4
A colonpair's angle value is read as the quote it is:
:x<1/2>holds a RatStr,:x<<a>>the word "a", and:x«a :b»holds a pair and splits what it interpolates.
More from this test: Compile-time errors (1).
xblock-listop-in-conditionRaku++ passesRakudo passes- 1
A listop before a block in a statement condition (
if,unless,elsif,with,without,while,until,repeat while,for,given,when,whenever) takes the block as its argument, so the statement's own block has to come after it.if foo { 1 } { say "yes" }callsfoowith the first block - 3
A term, a type or a statement prefix before a block in a statement condition is no listop and leaves the block to the statement.
if now { },if rand { },for buf8 -> \bt { }andfor gather { … } { }keep the block for the statement
More from this test: Compile-time errors (1).
zef-load-fixesRaku++ passesRakudo passes- 3
A postfix on a class declaration applies to the class, so
class Foo {…}.new(…)as a statement constructs an instance.
More from this test: Hashes & sets (1), Classes, roles & the MOP (1).
zero-dep-module-sweepRaku++ passesRakudo passes- 2
@$<seg>contextualizes the named capture$<seg>as a list; the capture subscript belongs to the variable, unlike the subscript in@$p[0]. - 3
&%dispatch{$key}— the code sigil on a hash or array element — is the callable stored in that element. - 4
=begin commentblocks of the same name nest: the outer block ends at its own=end comment, not at the inner one.
More from this test: Native types & NativeCall (1), Regexes & grammars (1).