Skip to content

Latest commit

 

History

History
87 lines (59 loc) · 991 Bytes

File metadata and controls

87 lines (59 loc) · 991 Bytes

STRUCT

MonkeyLexer

public struct MonkeyLexer: Lexer

Properties

readingChars

public var readingChars: (current: Character?, next: Character?)?

filePath

public let filePath: URL?

input

public var input: String

streamReader

public var streamReader: StreamReader?

currentLineNumber

public var currentLineNumber = 0

currentColumn

public var currentColumn = 0

readCharacterCount

public var readCharacterCount = 0

currentLine

public var currentLine = ""

Methods

init()

public init()

init(withFilePath:)

public init(withFilePath filePath: URL)

init(withString:)

public init(withString input: String)

readLine()

public mutating func readLine()

nextToken()

public mutating func nextToken() -> Token