Expand description
Move syntax parsing using unsynn
.
Re-exports§
Modules§
- kw
- Move keywords.
Structs§
- Attribute
- An attribute like
#[test_only]
,#[allow(...)]
, doc comment (/// ...
), etc. - Braced
Struct - Braced structs have their abilities declared before their fields.
- Const
- Enum
- Enum
Variant - Function
- 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 - 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
Enums§
- Ability
- Ability keywords.
- Fields
Kind - Kinds of fields for a Move enum.
- File
- Item
Kind - All Move item types.
- Struct
Kind - The kinds of structs; either a braced or tuple one.
- Type
Path - Path to a type.
Functions§
- sanitize_
for_ tokenizer - Process raw Move code so that it can be used as input to Rust’s tokenizer.