AbstractStacksScanner

abstract class AbstractStacksScanner

The basics of a Stacks scanner.

Author

Richard Arriaga

Parameters

moduleName

The name of the module being scanned.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun beingTokenized(): StringBuilder
Link copied to clipboard
operator fun next(): Char

Extract the current character and increment the position.

Link copied to clipboard
fun obtainModuleSimpleName(): String

From the full directory path of a module name, obtain the leaf portion that represents the file name in the directory.

Link copied to clipboard
fun resetBeingTokenized()

Properties

Link copied to clipboard
var filePosition: Int = 0

The start position of the comment in the file.

Link copied to clipboard
var lineNumber: Int = 0

The line number of the start of the token currently being parsed.

Link copied to clipboard
var outputTokens: MutableList<AbstractStacksToken>

The tokens that have been parsed so far.

Link copied to clipboard
var position: Int = 0

The current position in the input string.

Link copied to clipboard
var tokenString: String

The comment token text that has been lexed as one long token.

Inheritors

Link copied to clipboard
Link copied to clipboard