Skip to main content

Module parser

Module parser 

Source
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§

DecodeDiagnostic
A diagnostic emitted while decoding non-UTF-8 source into display text.
DecodedLightSlice
LightCommandSurface
LightParse
LightParseOptions
LightProcSurface
LightScanReport
LightScanSummary
LightSourceFile
Parse
Owned full-parse result for source text plus all parser-side diagnostics.
ParseBudgets
Resource budgets enforced by full and lightweight parse entry points.
ParseError
A parse error emitted after lexing succeeds.
ParseOptions
Options shared by the full parse entry points.
ParseSlice
Parse result for a source subrange produced from parse_source_view_range.
SharedLightParse
SharedLightScanReport
SharedParse
Shared full-parse result backed by Arc<str>.

Enums§

LightItem
LightSourceView
LightWord
ParseMode
Parser behavior presets for MEL files, snippets, and Maya Expression Editor source.
SourceEncoding
Supported source encodings for byte-oriented parse entry points.

Traits§

LightItemSink

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 SourceView using default ParseOptions.
parse_source_view_range_with_options
Parse a range from an existing SourceView with explicit ParseOptions.
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