[−][src]Trait scdlang::external::Builder
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
- setfalse
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.