Add line/position in compilation errors; Add compile to AST; FIx infinite loop in close parens.

This commit is contained in:
Stephen Chung
2020-02-24 23:25:52 +08:00
parent b3247204c6
commit e4e471fd20
5 changed files with 715 additions and 477 deletions

View File

@@ -32,7 +32,7 @@ fn test_mismatched_op_custom_type() {
assert_eq!(
engine.eval::<i64>("60 + new_ts()"),
Err(EvalAltResult::ErrorFunctionNotFound(
"+ (i64,mismatched_op::test_mismatched_op_custom_type::TestStruct)".into()
"+ (i64, mismatched_op::test_mismatched_op_custom_type::TestStruct)".into()
))
);
}