Skip to main content

Crate morph_parser

Crate morph_parser 

Source

Re-exports§

pub use linter::check as lint_check;
pub use linter::lint;

Modules§

linter

Structs§

ComponentConst
CppImport
CssData
The result of parsing a CSS file: style rules in source order (so equal specificity resolves by last-write like a browser), and the raw @keyframes registry keyed by animation name.
CssKeyframe
A single @keyframes entry: a selector offset (0..1) plus its declarations.
CssRule
A single CSS style rule: its selector plus its declarations.
InnerFunction
LintError
Lint diagnostic — mirrors Python’s LintError
MxComponent
MxEffect
MxImport
MxSource
A parsed .mx source file.
StateVar
WindowConfig

Enums§

JsxNode
Intermediate JSX representation (mirrors Python’s dict-based IR).
JsxPropValue
MxImportKind
StyleValue

Functions§

parse_css
Parse external CSS text into style rules + @keyframes.
parse_mx_file
Parse an .mx file (which is TSX) and return a structured representation.
parse_mx_str
Parse .mx source text into structured representation.