Symbol
public enum Symbol : Codable
extension Symbol: Hashable
extension Symbol: CustomStringConvertible
A symbol which can either be a terminal or a non-terminal character
- terminal: A terminal character
- nonTerminal: A non-terminal character
-
A terminal symbol
Declaration
Swift
case terminal(Terminal)
-
A non-terminal symbol
Declaration
Swift
case nonTerminal(NonTerminal)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public var hashValue: Int { get }
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public static func == (lhs: Symbol, rhs: Symbol) -> Bool
-
Declaration
Swift
public var description: String { get }