SyntaxTree

public final class SyntaxTree : Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public let symbol: String
  • Undocumented

    Declaration

    Swift

    public let from: Int
  • to

    Undocumented

    Declaration

    Swift

    public let to: Int
  • Undocumented

    Declaration

    Swift

    public let alternatives: [SyntaxTree]
  • Undocumented

    Declaration

    Swift

    public let paramIn: AnyHashable
  • Undocumented

    Declaration

    Swift

    public let paramOut: AnyHashable
  • Undocumented

    Declaration

    Swift

    public let children: [SyntaxTree]
  • Undocumented

    Declaration

    Swift

    public init(symbol: String, from: Int, to: Int, children: [SyntaxTree], paramIn: AnyHashable, paramOut: AnyHashable, alternatives: [SyntaxTree])
  • Undocumented

    Declaration

    Swift

    public subscript(index: Int) -> SyntaxTree { get }
  • Undocumented

    Declaration

    Swift

    public func explode() -> Set<SyntaxTree>
  • Declaration

    Swift

    public static func == (lhs: SyntaxTree, rhs: SyntaxTree) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Undocumented

    Declaration

    Swift

    public var countCases: Int { get }
  • Undocumented

    Declaration

    Swift

    public var isAmbiguous: Bool { get }
  • Undocumented

    Declaration

    Swift

    public func `case`(_ index: Int) -> SyntaxTree
  • Undocumented

    Declaration

    Swift

    public func debug(output: CodeOutput = DefaultCodeOutput())
  • Undocumented

    Declaration

    Swift

    public static func from(parseTree: ParseTree, grammar: Grammar) -> SyntaxTree