Enum nom_lua::ast::ASTNode [] [src]

pub enum ASTNode {
    Integer(i64),
    Float(f64),
    Bool(bool),
    String(String),
    Label(String),
    Name(String),
    Paren(Box<ASTNode>),
    Block(Vec<ASTNode>, Box<Option<ASTNode>>),
    EmptyStatement,
    Break,
    Goto(Box<ASTNode>),
    RetStat(Box<Option<ASTNode>>),
    Add(Box<ASTNode>, Box<ASTNode>),
    Sub(Box<ASTNode>, Box<ASTNode>),
    Mul(Box<ASTNode>, Box<ASTNode>),
    Div(Box<ASTNode>, Box<ASTNode>),
    Exp(Box<ASTNode>, Box<ASTNode>),
    FDiv(Box<ASTNode>, Box<ASTNode>),
    Mod(Box<ASTNode>, Box<ASTNode>),
    And(Box<ASTNode>, Box<ASTNode>),
    Or(Box<ASTNode>, Box<ASTNode>),
    Lt(Box<ASTNode>, Box<ASTNode>),
    Le(Box<ASTNode>, Box<ASTNode>),
    Gt(Box<ASTNode>, Box<ASTNode>),
    Ge(Box<ASTNode>, Box<ASTNode>),
    Eq(Box<ASTNode>, Box<ASTNode>),
    Ne(Box<ASTNode>, Box<ASTNode>),
    BitOr(Box<ASTNode>, Box<ASTNode>),
    BitAnd(Box<ASTNode>, Box<ASTNode>),
    BitXor(Box<ASTNode>, Box<ASTNode>),
    Rsh(Box<ASTNode>, Box<ASTNode>),
    Lsh(Box<ASTNode>, Box<ASTNode>),
    BinNot(Box<ASTNode>),
    Not(Box<ASTNode>),
    Len(Box<ASTNode>),
    UMin(Box<ASTNode>),
    Concat(Box<ASTNode>, Box<ASTNode>),
    PrefixExp(Box<ASTNode>),
    Nil,
    VarArg,
    TableConstructor(Box<Option<ASTNode>>),
    Function(Box<ASTNode>),
    FunctionBody(Box<Option<ASTNode>>, Box<ASTNode>),
    FunctionName(Box<ASTNode>, Option<Vec<ASTNode>>, Option<Box<ASTNode>>),
    NamedFunction(Box<ASTNode>, Box<ASTNode>),
    ExpList(Vec<ASTNode>),
    VarList(Vec<ASTNode>),
    NameList(Vec<ASTNode>),
    FieldList(Vec<ASTNode>),
    ParameterList(Box<Option<ASTNode>>, bool),
    FieldSingle(Box<ASTNode>),
    FieldAssign(Box<ASTNode>, Box<ASTNode>),
    Local(Box<ASTNode>),
    Var(Box<ASTNode>),
    VarPrefixed(Box<ASTNode>, Box<ASTNode>),
    VarListAccess(Box<ASTNode>, Box<ASTNode>),
}

Variants

Takes one of Var FunctionCall Exp

Takes a FunctionBody

Takes a ParameterList and a Block

Has 3 parameters the example: log.ms:al would produce Name log Name ms Name al

Takes a Name and a FunctionBody

Takes a list of parameters and is vararg

Contains an expr

The first node may be an expr to be resolved or a Name The second node is the assigned expr

Takes a Name

Takes a prefixexp and a exp

Takes a prefixexp and a Name

Trait Implementations

impl Clone for ASTNode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ASTNode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ASTNode
[src]

Formats the value using the given formatter.

impl Display for ASTNode
[src]

Formats the value using the given formatter. Read more