Structures

The following structures are available globally.

  • The name of a rule. Must be anonymous or otherwise unique among the other names of rules belonging to the same symbol.

    See more

    Declaration

    Swift

    public struct RuleName : Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Rule : GrammarElement, HasPosition, Hashable
  • The type of the name of a Symbol.

    See more

    Declaration

    Swift

    public struct SymbolName : Hashable, ExpressibleByStringLiteral, CustomStringConvertible, Codable
  • An IndexedSymbol designates either a terminal or a nonterminal.

    IndexedSymbols are used to refer to terminals and nonterminals in grammar rules. In order to distinguish between different occurrences of the same terminal / nonterminal, indexed symbols carry an optional index in addition to the actual name.

    See more

    Declaration

    Swift

    public struct IndexedSymbolName : CustomStringConvertible, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct TerminalPriority : GrammarElement, HasPosition, Hashable