Enum analisar::ast::Expression[][src]

pub enum Expression<'a> {
    Nil,
    False,
    True,
    Numeral(Numeral<'a>),
    LiteralString(LiteralString<'a>),
    Name(Name<'a>),
    VarArgs,
    FunctionDef(FuncBody<'a>),
    TableCtor(Box<Table<'a>>),
    BinOp {
        left: Box<Expression<'a>>,
        op: BinaryOperator,
        right: Box<Expression<'a>>,
    },
    UnaryOp {
        op: UnaryOperator,
        exp: Box<Expression<'a>>,
    },
    FuncCall(FunctionCall<'a>),
    Suffixed(Box<Suffixed<'a>>),
}

Variants

Nil
False
True
Numeral(Numeral<'a>)
LiteralString(LiteralString<'a>)
Name(Name<'a>)
VarArgs
FunctionDef(FuncBody<'a>)
TableCtor(Box<Table<'a>>)
BinOp

Fields of BinOp

left: Box<Expression<'a>>op: BinaryOperatorright: Box<Expression<'a>>
UnaryOp

Fields of UnaryOp

op: UnaryOperatorexp: Box<Expression<'a>>
FuncCall(FunctionCall<'a>)
Suffixed(Box<Suffixed<'a>>)

Implementations

impl<'a> Expression<'a>[src]

pub fn string(s: &'a str) -> Self[src]

pub fn func_call(subject: Expression<'a>, args: Args<'a>) -> Self[src]

pub fn method_call(subject: Expression<'a>, args: Args<'a>) -> Self[src]

pub fn binary(
    left: Expression<'a>,
    op: BinaryOperator,
    right: Expression<'a>
) -> Self
[src]

pub fn unary(op: UnaryOperator, exp: Expression<'a>) -> Self[src]

pub fn name_from(s: &'a str) -> Self[src]

pub fn numeral_from(s: &'a str) -> Self[src]

Trait Implementations

impl<'a> Debug for Expression<'a>[src]

impl<'a> PartialEq<Expression<'a>> for Expression<'a>[src]

impl<'a> StructuralPartialEq for Expression<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Expression<'a>[src]

impl<'a> Send for Expression<'a>[src]

impl<'a> Sync for Expression<'a>[src]

impl<'a> Unpin for Expression<'a>[src]

impl<'a> UnwindSafe for Expression<'a>[src]

Blanket Implementations

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

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

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

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

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

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.