SymbolSet
public struct SymbolSet
A set of terminal or non-terminal symbols
-
Whitespace characters (space, tab and line break)
Declaration
Swift
public static let whitespace: ProductionResult -
Lower case letters a to z
Declaration
Swift
public static let lowercase: ProductionResult -
Upper case letters A to Z
Declaration
Swift
public static let uppercase: ProductionResult -
Decimal digits 0 to 9
Declaration
Swift
public static let numbers: ProductionResult -
Lower and upper case letters a to z and A to Z
Declaration
Swift
public static var letters: ProductionResult { get } -
Alphanumeric characters (Letters and numbers)
Declaration
Swift
public static var alphanumerics: ProductionResult { get } -
Symbols contained in this symbol set
Declaration
Swift
public let symbols: [Symbol] -
Creates a new symbol set given a sequence of symbols
Declaration
Swift
public init<S>(_ sequence: S) where S : Sequence, S.Element == SymbolParameters
sequenceSequence of symbols which the symbol set should contain
View on GitHub
SymbolSet Structure Reference