Index
Modules:
toktok
,
toktok/lexer
.
API symbols
addField:
lexer: proc addField(tkEnum: var NimNode; enumType: NimNode)
lexer: proc addField(tkEnum: var NimNode; enumIdent, enumType: NimNode)
defaultSettings:
lexer: const defaultSettings
defaultTokenModifier:
lexer: let defaultTokenModifier
handlers:
lexer: macro handlers(custom: untyped)
newCaseStmt:
lexer: proc newCaseStmt(caseNode: NimNode; branches: openArray[tuple[cond, body: NimNode]]; elseBranch = newEmptyNode()): NimNode
newExceptionStmt:
lexer: proc newExceptionStmt(exception: NimNode; msg: NimNode): NimNode
newExclude:
lexer: proc newExclude(id: string): NimNode
newImport:
lexer: proc newImport(id: string): NimNode
newInclude:
lexer: proc newInclude(id: string): NimNode
newObject:
lexer: proc newObject(id: string; fields: openArrayParams = []; parent = ""; public = false): NimNode
newProc:
lexer: proc newProc(id: string; params: openArray[tuple[k, t: string, vt: bool]]; public = false; returnType, body = newEmptyNode()): NimNode
newTemplate:
lexer: proc newTemplate(id: string; params: openArray[tuple[k, t: string, vt: bool]]; public = false; body = newEmptyNode()): NimNode
newTupleType:
lexer: proc newTupleType(id: string; fields: openArrayParams; public = false): NimNode
newWhenStmt:
lexer: proc newWhenStmt(whenBranch: tuple[cond, body: NimNode]): NimNode
lexer: proc newWhenStmt(whenBranch: tuple[cond, body: NimNode]; elseBranch: NimNode): NimNode
openArrayParams:
lexer: type openArrayParams
registerTokens:
lexer: macro registerTokens(settings: static Settings; tokens: untyped)
Settings:
lexer: object Settings
TKNode:
lexer: type TKNode
TokenModifierCallback:
lexer: type TokenModifierCallback