use of org.matheclipse.core.convert.AST2Expr in project symja_android_library by axkr.
the class UnitTestingFunctions method readFile.
public static IAST readFile(EvalEngine engine, String str) {
final List<ASTNode> node = FileFunctions.parseReader(str, engine);
IExpr temp;
int i = 0;
AST2Expr ast2Expr = new AST2Expr(engine.isRelaxedSyntax(), engine);
IASTAppendable list = F.ListAlloc(node.size());
while (i < node.size()) {
temp = ast2Expr.convert(node.get(i++));
list.append(temp);
}
return list;
}
Aggregations