KeywordType

public enum KeywordType : Equatable

The type of the Keyword determines whether the item holds some special purpose, or it’s just an ordinary static String

  • By default, Keyword is created as a generic type, meaning, that there is no special requirement, that they need to fulfil

    Declaration

    Swift

    case generic
  • If a pattern contains two, semantically paired Keywords, they often represent opening and closing parentheses or any special enclosing characters. This case represents the first one of the pair, needs to be matched. Often these are expressed as opening parentheses, e.g. (

    Declaration

    Swift

    case openingStatement
  • If a pattern contains two, semantically paired Keywords, they often represent opening and closing parentheses or any special enclosing characters. This case represents the second (and last) one of the pair, needs to be matched. Often these are expressed as closing parentheses, e.g. )

    Declaration

    Swift

    case closingStatement