StringToken

public struct StringToken : TokenType, CustomStringConvertible

A generic TokenType implementation that is labelled (has an associated `String). The value is automatically generated

  • The Int identifier of the Token. It is automatically generated

    Declaration

    Swift

    public let rawValue: Int
  • Create a new token instance

    Declaration

    Swift

    public init(_ label: String)

    Parameters

    label

    The textual representation of the token

  • A human readable representation of the token

    Declaration

    Swift

    public var description: String { get }