Abstract Stacks Token
abstract class AbstractStacksToken(lexeme: String, lineNumber: Int, position: Int, startOfTokenLinePosition: Int, moduleName: String, val isSectionToken: Boolean)
The abstract form of a token in a Stacks comment that has been lexed.
Author
Richard Arriaga
Parameters
lexeme
The string to be tokenized.
line Number
The line number where the token occurs/begins
position
The absolute start position of the token
start Of Token Line Position
The position on the line where the token starts.
module Name
The module this token is in.
is Section Token
Whether this is a section (§) token.
Inheritors
Constructors
Functions
Link copied to clipboard
Provide the token's string representation.
Link copied to clipboard
open fun toJSON(linkingFileMap: LinkingFileMap, hashID: Int, errorLog: StacksErrorLog, jsonWriter: JSONWriter): String
Create JSON form of token.