Expand description
Move syntax parsing using unsynn.
Re-exports§
Modules§
- kw
- Move keywords.
Structs§
- Attributes
- A Move attributes anottation.
- Braced
Struct - Braced structs have their abilities declared before their fields.
- Const
- Enum
- Enum
Variant - Function
- Function
Arg fun-sig - E.g.,
name: T,mut name: T,name: &T,name: &mut T. - Generic
- A generic type declaration.
- Generics
- The generics of a datatype or function.
- Import
- Item
- A Move language item.
- Labeled
Module - A single module defined with a top-level label.
- Macro
Fun - Maybe
RefType - Type of function arguments or returns.
- Module
- A Move module declaration.
- Named
Field - Named datatype field.
- Named
Fields - Brace group containing comma-delimited named fields.
- Native
Fun - Positional
Fields - Parenthesis group containing comma-delimited unnamed fields.
- Struct
- A Move struct.
- Tuple
Struct - Tuple structs have their abilities declared after their fields, with a trailing semicolon if so.
- Type
- Non-reference type, used in datatype fields.
- Type
Args - Angle bracket group (
<...>) containing comma-delimited types. - Unnamed
Field - Unnamed datatype field.
- UseFun
- Alias for a receiver method, like
use fun foo as Bar.bar;
Enums§
- Ability
- Ability keywords.
- Fields
Kind - Kinds of fields for a Move enum.
- File
- Flat
Import - Item
Kind - All Move item types.
- Item
Path - Path to an item.
- Struct
Kind - The kinds of structs; either a braced or tuple one.
- Visibility
- Visibility options of a Move
Item.
Functions§
- sanitize_
for_ tokenizer - Process raw Move code so that it can be used as input to Rust’s tokenizer.