[][src]Trait scdlang::external::Builder

pub trait Builder<'t> {
    fn auto_clear_cache(&mut self, default: bool) -> &mut dyn Builder<'t>;
fn with_err_semantic(&mut self, default: bool) -> &mut dyn Builder<'t>;
fn with_err_path(&mut self, path: &'t str) -> &mut dyn Builder<'t>;
fn with_err_line(&mut self, line: usize) -> &mut dyn Builder<'t>; }

A Trait to configure the Parser. This is a config builder for Scdlang core parser.

Required methods

fn auto_clear_cache(&mut self, default: bool) -> &mut dyn Builder<'t>

Automatically clear cache when out of scope.

  • default - set false to disable it. (default: true)

The cache is used for analyzing semantics error. This can be handy when parsing in streaming fashion.

fn with_err_semantic(&mut self, default: bool) -> &mut dyn Builder<'t>

Enable semantics error. (default: true).

fn with_err_path(&mut self, path: &'t str) -> &mut dyn Builder<'t>

Set path that going to be printed in the error essages.

fn with_err_line(&mut self, line: usize) -> &mut dyn Builder<'t>

Set the line_of_code offset of the error essages.

Loading content...

Implementors

impl<'g> Builder<'g> for Scdlang<'g>[src]

Loading content...