Enum baby_emulator::assembler::parser::LineType
source · pub enum LineType {
Tag(String),
Absolute(Value),
Instruction(Instruction),
}Expand description
Represents all the possible syntaxes for a line.
Variants§
Tag(String)
A named reference to a position in the program code.
Asm Example
:start
JMP $start ;jumps to the start of the program
Absolute(Value)
An absolute value in the program stack.
Instruction(Instruction)
An actual instruction directive telling the computer to perform an action.
Trait Implementations§
source§impl PartialEq<LineType> for LineType
impl PartialEq<LineType> for LineType
impl StructuralPartialEq for LineType
Auto Trait Implementations§
impl RefUnwindSafe for LineType
impl Send for LineType
impl Sync for LineType
impl Unpin for LineType
impl UnwindSafe for LineType
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