package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Oct 14, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package lexer turns Kukel source text into tokens (syntax.ebnf, section 4).
Tokenize scans the whole of src. The result ends with an EOF token. On a
lexical error it returns the tokens scanned so far and the error.
Error is a lexical error at a source position.
Lexer scans one source file.
New returns a lexer for src. A raw NUL byte ends its source line: the bytes
from the NUL up to the next newline are dropped before scanning.
Next returns the next token, or an error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.