Expand description
The Muse syntax parser.
Modules§
- Source code tokenization.
Structs§
- The syntax components of an assignment expression.
- The syntax components of a two-argument expression.
- The syntax components of a block.
- The syntax components of a break control flow expression.
- The syntax components of the catch portion of a try expression.
- The syntax components of a continue expression.
- A sequence of
T, delimited byDelimiter. - A builder that produces a
Delimitedlist. - An iterator over a
Delimitedlist’s values. - An iterator over exclusive references to a
Delimitedlist’s values. - The syntax components of the else part of an if expression.
- A value enclosed in open and close tokens.
- The syntax components of a pattern match against a single map field.
- A custom enum type definition.
- A custom enum type definition.
- The syntax components of a function call.
- The syntax components of a function definition.
- The syntax components of an if expression.
- The syntax components of an index expression.
- The syntax components of an infix macro expression.
- The syntax components of the label part of a labeled expression.
- The syntax components of a list literal.
- The syntax components of a lookup expression (
foo.bar). - The syntax components of the base of a lookup expression.
- The syntax components of a loop expression.
- The syntax components of a macro invocation.
- The syntax components of a map literal.
- The syntax components of a field in a map literal.
- The syntax components of a match statement.
- The syntax components of a pattern match in a match expression.
- A set of match patterns.
- The syntax components of a module definition.
- A new structure instantiation.
- A single field in a
NewStruct. - The syntax components of a pattern
- A comparision pattern for comparing against a non-literal value.
- A value and an associated source range.
- The syntax components of a return control flow expression.
- The syntax components of a single match expression.
- An identified chunk of Muse source code.
- The ID of a
SourceCode. - A range within a
SourceCode. - A collection of
TrackedSource. - A custom structure type definition.
- The syntax components of a throw control flow expression.
- An entry in a
Sourcescollection. - The syntax components of a try block.
- The syntax components of a try-or-nil expression (
foo?). - The syntax components of a single-argument expression.
Enums§
- The target of an assignment expression.
- The kind of a binary expression.
- Binary bitwise expression kinds.
- Comparison expression kinds.
- The syntax components of the key portion of a pattern match on a map field.
- A Muse expression.
- A literal value.
- Binary logical expression kinds.
- The kind of a loop expression.
- A syntax parsing error.
- The syntax components of a portion of a pattern match.
- A member of ta
StructureDefinition. - The kind of a single-argument expression.
Traits§
- Converts a value into
Tokens. - Converts a value into a series of
Tokens with the provided enclosing range.
Functions§
- Parses source code into an expression.
- Parses a series of tokens into an expression.