Skip to main content

Module parser

Module parser 

Source
Expand description

Bounded lexer and parser for Konjure source modules.

The parser deliberately keeps syntax errors portable: every error is tied to a byte span in the named input module and malformed input never panics.

Structs§

Token
A source token intended for editors and other language tooling.

Functions§

parse
Parses a complete source module into its top-level items.
tokenize
Tokenizes source without discarding comments. Spans are UTF-8 byte offsets.