Enumerations
The following enumerations are available globally.
-
A useful standard implementation of
See moreTestErrorType
that enables the reporting of most kinds of issuesDeclaration
Swift
public enum ProcessingError : CausalErrorType
-
An annotation that can be associated with any rule influencing how matches are interpretted and providing additional data about the token. The following annotations represent
reserved words
, but otherwise you can define any annotations you want..token
Override the token to be created when the rule is matched (ignoring theRule
‘sproduces
property- ’.error
A specific error message to generate if the
Rule` is not satisfied - ‘.void’ The match should be completely ignored. This is not a failure but rather a consumption
- ‘.transient’ The match should be made and a
Node
could be created but this token is not significant for the AST - ‘.pinned’ The token should be created with no value even if the
Rule
is not matched in an ignorable failure
Declaration
Swift
public enum RuleAnnotation : Hashable, CustomStringConvertible
-
Represents the value for a rule annotation
See moreDeclaration
Swift
public enum RuleAnnotationValue : CustomStringConvertible, Equatable