StacksScanner

class StacksScanner(commentToken: A_Token, moduleName: String) : AbstractStacksScanner

A scanner for Stacks comments.

Author

Richard Arriaga

Parameters

commentToken

The comment token to be scanned and tokenized.

moduleName

The name of the module the comment is in.

Constructors

Link copied to clipboard
constructor(commentToken: A_Token, moduleName: String)

Construct a new StacksScanner.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The start position of the comment in the file.

Link copied to clipboard

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

Link copied to clipboard

The module file name without the path.

Link copied to clipboard

The tokens that have been parsed so far.

Link copied to clipboard

The current position in the input string.

Link copied to clipboard

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

Functions

Link copied to clipboard
Link copied to clipboard

set the hasHTMLTag to false

Link copied to clipboard

set the hasHTMLTag to true

Link copied to clipboard
fun addHTMLTokens(htmlTags: String)

Insert HTML tags in tokenized comments.

Link copied to clipboard
Link copied to clipboard

decrement new line

Link copied to clipboard
Link copied to clipboard

set the hasHTMLTag to false

Link copied to clipboard

set the hasHTMLTag to true

Link copied to clipboard

Increment new line

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

Extract the current character and increment the position.

Link copied to clipboard

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
Link copied to clipboard

Set the newlineCount to 0;

Link copied to clipboard
fun scan()

Scan the already-specified String to produce tokens.