NonTerminal

public struct NonTerminal : Codable, Hashable
extension NonTerminal: CustomStringConvertible
extension NonTerminal: ExpressibleByStringLiteral

A non-terminal symbol, which cannot occurr in a word recognized by a parser

  • Declaration

    Swift

    public static func == (lhs: NonTerminal, rhs: NonTerminal) -> Bool
  • Name of the non-terminal

    Declaration

    Swift

    public let name: String
  • Declaration

    Swift

    public let hashValue: Int
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Creates a new non-terminal symbol with a given name

    Declaration

    Swift

    public init(name: String)

    Parameters

    name

    Name of the non-terminal symbol

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public typealias StringLiteralType = String
  • Declaration

    Swift

    public init(stringLiteral value: String)