pub enum Ident {
Show 33 variants
ADD,
AND,
NOT,
BR,
BRP,
BRZ,
BRZP,
BRN,
BRNP,
BRNZ,
BRNZP,
JMP,
JSR,
JSRR,
LD,
LDI,
LDR,
LEA,
ST,
STI,
STR,
TRAP,
NOP,
RET,
RTI,
GETC,
OUT,
PUTC,
PUTS,
IN,
PUTSP,
HALT,
Label(String),
}
Expand description
An identifier.
This can refer to either:
- a label (e.g.,
IF
,WHILE
,ENDIF
,IF1
) - an instruction (e.g.
ADD
,AND
,NOT
)
This token type is case insensitive.
Variants§
ADD
AND
NOT
BR
BRP
BRZ
BRZP
BRN
BRNP
BRNZ
BRNZP
JMP
JSR
JSRR
LD
LDI
LDR
LEA
ST
STI
STR
TRAP
NOP
RET
RTI
GETC
OUT
PUTC
PUTS
IN
PUTSP
HALT
Label(String)
Trait Implementations§
impl Eq for Ident
impl StructuralPartialEq for Ident
Auto Trait Implementations§
impl Freeze for Ident
impl RefUnwindSafe for Ident
impl Send for Ident
impl Sync for Ident
impl Unpin for Ident
impl UnwindSafe for Ident
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