Trait seax_util::compiler_tools::ast::ASTNode [] [src]

pub trait ASTNode {
    fn compile<'a>(&'a self, state: &'a SymTable<'a>) -> CompileResult;
    fn print_level(&self, level: usize) -> String;

    fn prettyprint(&self) -> String { ... }
}

Trait for AST nodes.

Required Methods

Compile this node to a list of SVM expressions

Pretty-print this node at the desired indent level

Provided Methods

Pretty-print this node to a String.

This should start with this node indented zero spaces, and recursively walk the tree downward, increasing the indentation level by INDENT every step.

Trait Implementations

impl Debug for ASTNode
[src]

Formats the value using the given formatter.

Implementors