[][src]Enum jcompilerlib::parser::AstNode

pub enum AstNode {
    Print(Box<AstNode>),
    Integer(i32),
    DoublePrecisionFloat(f64),
    MonadicOp {
        verb: MonadicVerb,
        expr: Box<AstNode>,
    },
    DyadicOp {
        verb: DyadicVerb,
        lhs: Box<AstNode>,
        rhs: Box<AstNode>,
    },
    Terms(Vec<AstNode>),
    Reduce {
        verb: DyadicVerb,
        expr: Box<AstNode>,
    },
    IsGlobal {
        ident: String,
        expr: Box<AstNode>,
    },
    Ident(String),
    Str(AsciiString),
}

Variants

Print(Box<AstNode>)Integer(i32)DoublePrecisionFloat(f64)MonadicOp

Fields of MonadicOp

verb: MonadicVerbexpr: Box<AstNode>
DyadicOp

Fields of DyadicOp

verb: DyadicVerblhs: Box<AstNode>rhs: Box<AstNode>
Terms(Vec<AstNode>)Reduce

Fields of Reduce

verb: DyadicVerbexpr: Box<AstNode>
IsGlobal

Fields of IsGlobal

ident: Stringexpr: Box<AstNode>
Ident(String)Str(AsciiString)

Trait Implementations

impl Clone for AstNode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<AstNode> for AstNode[src]

impl Debug for AstNode[src]

impl Display for AstNode[src]

Auto Trait Implementations

impl Send for AstNode

impl Sync for AstNode

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]