Allow AST optimization based on external Scope.
This commit is contained in:
@@ -73,7 +73,7 @@ fn main() {
|
||||
}
|
||||
|
||||
if let Err(err) = engine
|
||||
.compile(&input)
|
||||
.compile_with_scope(&scope, &input)
|
||||
.map_err(EvalAltResult::ErrorParsing)
|
||||
.and_then(|r| {
|
||||
ast = Some(r);
|
||||
|
Reference in New Issue
Block a user