Closed
Description
Parsing structs and enums is enough for Macros 1.1 but parsing all of Rust may be useful for other things.
Items
- ExternCrate
- Use
- Static
- Const
- Fn
- Mod
- ForeignMod
- Ty
- Enum (enabled by default)
- Struct (enabled by default)
- Union
- Trait
- DefaultImpl
- Impl
- Mac
Expressions
- Box
- Vec
- Call
- MethodCall
- Tup
- Binary
- Unary
- Lit
- Cast
- Type
- If
- IfLet
- While
- WhileLet
- ForLoop
- Loop
- Match
- Closure
- Block
- Assign
- AssignOp
- Field
- TupField
- Index
- Range
- Path
- AddrOf
- Break
- Continue
- Ret
- Mac
- Struct
- Repeat
- Paren
- Try
Statements
- Local
- Item
- Expr
- Semi
- Mac
Patterns
- Wild
- Ident
- Struct
- TupleStruct
- Path
- Tuple
- Box
- Ref
- Lit
- Range
- Slice
- Mac
Other
- Workaround for parsing ambiguity Disallow struct literals in ambiguous positions. rust-lang/rfcs#92