Rules / Types, classes & roles / exception
X::Syntax Reference
Syntax error thrown by the compiler
What it is #
Position in the hierarchy #
| |
|---|
| Inherits from | — |
| Does | — |
| Consumed by | X::Backslash::NonVariableDollar, X::Backslash::UnrecognizedSequence, X::Syntax::Argument::MOPMacro, X::Syntax::Augment::Illegal, X::Syntax::BlockGobbled, X::Syntax::CannotMeta, X::Syntax::Extension::Null, X::Syntax::KeywordAsFunction, X::Syntax::Malformed::Elsif, X::Syntax::NonAssociative, X::Syntax::Perl5Var, X::Syntax::Regex::MalformedRange, X::Syntax::Regex::NullRegex, X::Syntax::Regex::SpacesInBareRange, X::Syntax::Regex::UnrecognizedMetachar, X::Syntax::Regex::Unspace, X::Syntax::Regex::Unterminated, X::Syntax::AddCategorical::TooFewParts, X::Syntax::AddCategorical::TooManyParts, X::Syntax::Augment::WithoutMonkeyTyping, X::Syntax::Comment::Embedded, X::Syntax::Confused, X::Syntax::Extension::Category, X::Syntax::InfixInTermPosition, X::Syntax::Malformed, X::Syntax::Missing, X::Syntax::Name::Null, X::Syntax::NegatedPair, X::Syntax::NoSelf, X::Syntax::Number::RadixOutOfRange, X::Syntax::P5, X::Syntax::Pod::BeginWithoutEnd, X::Syntax::Pod::BeginWithoutIdentifier, X::Syntax::Regex::Adverb, X::Syntax::Regex::SolitaryQuantifier, X::Syntax::Reserved, X::Syntax::Self::WithoutObject, X::Syntax::Signature::InvocantMarker, X::Syntax::Term::MissingInitializer, X::Syntax::UnlessElse, X::Syntax::Variable::IndirectDeclaration, X::Syntax::Variable::Match, X::Syntax::Variable::Numeric, X::Syntax::Variable::Twigil, X::Syntax::VirtualCall |
Examples, run three ways #
Every example below comes from the official documentation, together with the output that documentation asserts. Each was then executed by Rakudo and by Raku++ when this page was built. Where the three agree, one result is shown; where they do not, all three are — because which of them is wrong is exactly the information worth having.
1 no-output
role X::Syntax does X::Comp { }Not executed: the documentation states no expected output for this example.