Enumerations

The following enumerations are available globally.

  • A useful standard implementation of TestErrorType that enables the reporting of most kinds of issues

    See more

    Declaration

    Swift

    public enum ProcessingError : CausalErrorType
  • Log

    Undocumented

    See more

    Declaration

    Swift

    public enum Log
  • Match results are passed from Rules to IntermediateRepresentations and provide all information required to create an AST or even begin interpretting the results of the match.

    See more

    Declaration

    Swift

    public enum MatchResult : CustomStringConvertible
  • 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 the Rule‘s produces property
    • ’.errorA specific error message to generate if theRule` 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
    See more

    Declaration

    Swift

    public enum RuleAnnotation : Hashable, CustomStringConvertible
  • Represents the value for a rule annotation

    See more

    Declaration

    Swift

    public enum RuleAnnotationValue : CustomStringConvertible, Equatable