Struct erg_compiler::ASTBuilder
source · pub struct ASTBuilder { /* private fields */ }
Expand description
Summarize parsing and desugaring
Implementations§
source§impl ASTBuilder
impl ASTBuilder
pub fn build(&mut self, src: String) -> Result<AST, ParserRunnerErrors>
pub fn build_without_desugaring( &mut self, src: String ) -> Result<AST, ParserRunnerErrors>
Trait Implementations§
source§impl Debug for ASTBuilder
impl Debug for ASTBuilder
source§impl Default for ASTBuilder
impl Default for ASTBuilder
source§fn default() -> ASTBuilder
fn default() -> ASTBuilder
Returns the “default value” for a type. Read more
source§impl Runnable for ASTBuilder
impl Runnable for ASTBuilder
type Err = ParserRunnerError
type Errs = ParserRunnerErrors
const NAME: &'static str = "Erg AST builder"
fn new(cfg: ErgConfig) -> ASTBuilder
fn cfg(&self) -> &ErgConfig
fn cfg_mut(&mut self) -> &mut ErgConfig
fn finish(&mut self)
source§fn initialize(&mut self)
fn initialize(&mut self)
Erase all but immutable information.