class X::Syntax::Missing

Compilation error due to a missing piece of syntax
class X::Syntax::Missing does X::Syntax { }

Syntax error thrown when the previous piece of syntax requires the existence of another piece of syntax, and that second piece is missing.

For example

for 1, 2, 3;

dies with

===SORRY!===
Missing block

because a for that is not a statement modifier must be followed by a block.

Methods

method what

method what(--> Str:D)

Returns a string description of the missing syntax element.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.