[−][src]Enum cpclib_asm::preamble::tokens::Expr
Expression nodes.
Variants
Value(i32)
32 bits integer value (should be able to include any integer value manipulated by the assember.
String(String)
String (for db directive)
Label(String)
Label
This expression node represents the duration of an instruction. The duration is compute at assembling and not at parsing in order to benefit of the symbol table
UnaryFunction(UnaryFunction, Box<Expr>)
BinaryFunction(BinaryFunction, Box<Expr>, Box<Expr>)
Methods
impl Expr
[src]
pub fn is_negated(&self) -> bool
[src]
pub fn neg(&self) -> Expr
[src]
pub fn is_context_independant(&self) -> bool
[src]
Check if it is necessary to read within a symbol table
Trait Implementations
impl Clone for Expr
[src]
impl Debug for Expr
[src]
impl Display for Expr
[src]
impl Eq for Expr
[src]
impl ExprEvaluationExt for Expr
[src]
fn resolve(
&self,
sym: &SymbolsTableCaseDependent
) -> Result<i32, AssemblerError>
[src]
&self,
sym: &SymbolsTableCaseDependent
) -> Result<i32, AssemblerError>
fn eval(&self) -> Result<i32, AssemblerError>
[src]
impl<'_> From<&'_ str> for Expr
[src]
impl From<Expr> for DataAccess
[src]
fn from(exp: Expr) -> DataAccess
[src]
impl From<Expr> for FormattedExpr
[src]
fn from(e: Expr) -> FormattedExpr
[src]
impl From<i16> for Expr
[src]
impl From<i32> for Expr
[src]
impl From<i8> for Expr
[src]
impl From<u16> for Expr
[src]
impl From<u32> for Expr
[src]
impl From<u8> for Expr
[src]
impl From<usize> for Expr
[src]
impl PartialEq<Expr> for Expr
[src]
impl StructuralEq for Expr
[src]
impl StructuralPartialEq for Expr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,