pub enum Syntax {
Show 74 variants
Var,
Key,
SetKey,
GetKey,
GetKey2,
GetKey3,
GetSym,
GetSym2,
GetSym3,
GetIdx,
GetIdx2,
GetIdx3,
BinOpAdd,
BinOpSub,
BinOpMul,
BinOpDiv,
BinOpMod,
BinOpLe,
BinOpLt,
BinOpGe,
BinOpGt,
BinOpEq,
BinOpSomeOr,
BinOpExtSomeOr,
BinOpNoneOr,
BinOpErrOr,
BinOpOptOr,
OpNewPair,
OpCallLwR,
OpCallRwL,
OpCallApplyLwR,
OpCallApplyRwL,
OpColAddL,
OpColAddR,
Str,
Lst,
IVec,
FVec,
Opt,
Iter,
Map,
Expr,
Func,
Block,
Err,
Call,
Apply,
And,
Or,
Assign,
Def,
Ref,
HRef,
WRef,
Deref,
CaptureRef,
AssignRef,
DefGlobRef,
DefConst,
SelfObj,
SelfData,
Import,
Export,
DumpStack,
DumpVM,
DebugPrint,
MapSplice,
VecSplice,
Accum,
GlobVar,
Selector,
Pattern,
StructPattern,
Formatter,
}Expand description
Encodes the different types of AST nodes.
Variants§
Var
Key
SetKey
GetKey
GetKey2
GetKey3
GetSym
GetSym2
GetSym3
GetIdx
GetIdx2
GetIdx3
BinOpAdd
BinOpSub
BinOpMul
BinOpDiv
BinOpMod
BinOpLe
BinOpLt
BinOpGe
BinOpGt
BinOpEq
BinOpSomeOr
BinOpExtSomeOr
BinOpNoneOr
BinOpErrOr
BinOpOptOr
OpNewPair
OpCallLwR
OpCallRwL
OpCallApplyLwR
OpCallApplyRwL
OpColAddL
OpColAddR
Str
Lst
IVec
FVec
Opt
Iter
Map
Expr
Func
Block
Err
Call
Apply
And
Or
Assign
Def
Ref
HRef
WRef
Deref
CaptureRef
AssignRef
DefGlobRef
DefConst
SelfObj
SelfData
Import
Export
DumpStack
DumpVM
DebugPrint
MapSplice
VecSplice
Accum
GlobVar
Selector
Pattern
StructPattern
Formatter
Trait Implementations§
impl Copy for Syntax
impl StructuralPartialEq for Syntax
Auto Trait Implementations§
impl Freeze for Syntax
impl RefUnwindSafe for Syntax
impl Send for Syntax
impl Sync for Syntax
impl Unpin for Syntax
impl UnwindSafe for Syntax
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more