Expand description
Full and lightweight MEL parsing entry points. Full and lightweight MEL parsing entry points.
Most users should start with parse_source or parse_file. Those APIs
return a typed AST plus lexical, decoding, and parse diagnostics.
Use the lightweight parse APIs such as parse_light_source when you need
command-oriented scans over large sources without materializing the full AST.
Structs§
- Decode
Diagnostic - A diagnostic emitted while decoding non-UTF-8 source into display text.
- Decoded
Light Slice - Light
Command Surface - Light
Parse - Light
Parse Options - Light
Proc Surface - Light
Scan Report - Light
Scan Summary - Light
Source File - Parse
- Owned full-parse result for source text plus all parser-side diagnostics.
- Parse
Budgets - Resource budgets enforced by full and lightweight parse entry points.
- Parse
Error - A parse error emitted after lexing succeeds.
- Parse
Options - Options shared by the full parse entry points.
- Parse
Slice - Parse result for a source subrange produced from
parse_source_view_range. - Shared
Light Parse - Shared
Light Scan Report - Shared
Parse - Shared full-parse result backed by
Arc<str>.
Enums§
- Light
Item - Light
Source View - Light
Word - Parse
Mode - Parser behavior presets for MEL files, snippets, and Maya Expression Editor source.
- Source
Encoding - Supported source encodings for byte-oriented parse entry points.
Traits§
Functions§
- parse_
bytes - Decode and parse bytes using automatic encoding detection.
- parse_
bytes_ with_ encoding - Decode and parse bytes with an explicit source encoding.
- parse_
file - Read, decode, and parse a file using automatic encoding detection.
- parse_
file_ with_ encoding - Read, decode, and parse a file with an explicit encoding.
- parse_
file_ with_ encoding_ and_ options - Read, decode, and parse a file with an explicit encoding and
ParseOptions. - parse_
file_ with_ options - Read, decode, and parse a file using explicit
ParseOptions. - parse_
light_ bytes - parse_
light_ bytes_ with_ encoding - parse_
light_ file - parse_
light_ file_ with_ encoding - parse_
light_ file_ with_ encoding_ and_ options - parse_
light_ file_ with_ options - parse_
light_ shared_ bytes - parse_
light_ shared_ bytes_ with_ encoding - parse_
light_ shared_ file - parse_
light_ shared_ file_ with_ encoding - parse_
light_ shared_ source - parse_
light_ shared_ source_ with_ options - parse_
light_ source - parse_
light_ source_ with_ options - parse_
shared_ bytes - Decode and parse bytes into a shared parse using automatic encoding detection.
- parse_
shared_ bytes_ with_ encoding - Decode and parse bytes into a shared parse with an explicit source encoding.
- parse_
shared_ file - Read, decode, and parse a file using automatic encoding detection.
- parse_
shared_ file_ with_ encoding - Read, decode, and parse a file into a shared parse with an explicit encoding.
- parse_
shared_ source - Parse shared UTF-8 source text into a full AST.
- parse_
shared_ source_ with_ options - Parse shared UTF-8 source text with explicit
ParseOptions. - parse_
source - Parse a UTF-8 source string into a full AST.
- parse_
source_ view_ range - Parse a range from an existing
SourceViewusing defaultParseOptions. - parse_
source_ view_ range_ with_ options - Parse a range from an existing
SourceViewwith explicitParseOptions. - parse_
source_ with_ options - Parse a UTF-8 source string with explicit
ParseOptions. - scan_
light_ bytes_ with_ encoding_ and_ options_ and_ sink - scan_
light_ bytes_ with_ encoding_ and_ sink - scan_
light_ bytes_ with_ options_ and_ sink - scan_
light_ bytes_ with_ options_ and_ sink_ and_ then - scan_
light_ bytes_ with_ sink - scan_
light_ file_ with_ encoding_ and_ options_ and_ sink - scan_
light_ file_ with_ encoding_ and_ sink - scan_
light_ file_ with_ options_ and_ sink - scan_
light_ file_ with_ sink - scan_
light_ shared_ bytes_ with_ encoding_ and_ options_ and_ sink - scan_
light_ shared_ bytes_ with_ options_ and_ sink - scan_
light_ shared_ file_ with_ encoding_ and_ options_ and_ sink - scan_
light_ shared_ file_ with_ options_ and_ sink - scan_
light_ shared_ source_ with_ options_ and_ sink - scan_
light_ shared_ source_ with_ sink - scan_
light_ source_ with_ options_ and_ sink - scan_
light_ source_ with_ sink