Tokens
Norg.Tokens.Token
Norg.Tokens.Token
Norg.Tokens.TokenPosition
Norg.Tokens.char
Norg.Tokens.line
Norg.Tokenize.tokenize
Tokens
Norg.Tokens
— ModuleProvides the tokens for the tokenizer.
A Tokens.Token
stores its value, a Kinds.Kind
and a Tokens.TokenPosition
Norg.Tokens.Token
— TypeA Norg Token has a Kinds.kind
(i.e. K"EndLine"
), a position
, and a value
.
See also: Tokens.TokenPosition
Norg.Tokens.Token
— Method Token(kind, line, char, value)
Create a Token
of kind kind
with value value
at line
and char number char
.
Norg.Tokens.TokenPosition
— TypeStores the position of a token in the input file (line and char).
Norg.Tokens.char
— Methodchar(x)
Return the character number in the line corresponding to position or token x
.
Norg.Tokens.line
— Methodline(x)
Return the line number corresponding to the position or token x
.
Tokenize
Norg.Tokenize
— ModuleProduce Tokens.Token
vectors from a string using tokenize
.
Norg.Tokenize.tokenize
— Methodtokenize(input)
Produce Tokens.Token
vectors from an input string.