Module
lexie/generate_lexer
src/lexie/generate_lexer.pookaThe reader itself: one patient walk over the bytes, and not a regular expression in sight.
Generates lexer.pooka: a hand-written-style lexer over the source's
bytes.
Fixed tokens match with bit-array literals, such as
<<"==":utf8, after:bits>>, tried longest first. Character classes
match one byte against ranges in a guard. Text is sliced out of the
source by byte offset, so nothing is copied until a token keeps it. There
is no regular expression engine and no runtime library: the generated
module needs only the standard library.
API reference
source(c: Config) -> String
INFERRED
fn(lexie/config.Config) -> StringThe generated lexer module.
scanner_name(style: StringStyle) -> String
INFERRED
fn(lexie/config.StringStyle) -> StringThe scanner for a string style, such as _scan_raw_string.