Skip to main content

Crate mimispec

Crate mimispec 

Source

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§

IncrementalCache
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 target within 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 .mms file from disk and resolve its @import directives 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§

ParseFileResult
Return type for parse_file(): (main ParseResult, all resolved files, non-parse resolve errors).