public static Walk compile( File file, IcosahedralSymmetry symm ) {
String fileName = file.getAbsolutePath();
Walk program = null;
ErrorHandler.Default errors = new ErrorHandler.Default();
ZomicASTCompiler compiler = new ZomicASTCompiler(symm );
try {
ANTLRFileStream fileStream = new ANTLRFileStream(fileName);
program = compiler.compile( fileStream, errors );
if( program != null ) {
program.setErrors( errors.getErrors() );
}
} catch (IOException ex) {
errors.parseError( ErrorHandler.UNKNOWN, ErrorHandler.UNKNOWN, ex.getMessage() );
}
return program;
}
ZomicASTCompiler.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:vzome-core
作者:
评论列表
文章目录