Modules§
- ast
- cache
- error
- format
- Structured diagnostic formatting for CLI output.
- latex
- Lightweight LaTeX renderer for MimiSpec math expressions.
- lexer
- parser
- query
- render
- resolver
- symbol
Structs§
- Incremental
Cache - Cache that avoids re-parsing unchanged sources.
Functions§
- edit_
distance - Compute the Levenshtein edit distance between two strings.
- find_
suggestion - Find the closest known name to
targetwithin a maximum edit distance. - known_
names_ from_ tokens - Collect all identifier, string, and number names from a token slice for fuzzy lookup.
- parse
- Parse a MimiSpec source string into an AST, recovering as many fragments as possible.
- parse_
file - Parse a
.mmsfile from disk and resolve its@importdirectives recursively. - parse_
fragment - Parse a single MimiSpec fragment in isolation (useful for IDE snippet validation).
- tokenize
- Tokenize a MimiSpec source string into a sequence of tokens.
Type Aliases§
- Parse
File Result - Return type for
parse_file(): (main ParseResult, all resolved files, non-parse resolve errors).