Add AST::combine and AST::combine_filtered.

This commit is contained in:
Stephen Chung
2020-10-07 12:11:25 +08:00
parent 3340760b35
commit 1523981e4e
5 changed files with 151 additions and 18 deletions

View File

@@ -155,7 +155,7 @@ fn main() {
}
// Merge the AST into the main
main_ast = main_ast.merge(&ast);
main_ast += ast.clone();
// Evaluate
engine.eval_ast_with_scope::<Dynamic>(&mut scope, &main_ast)