/**
* Parses a source file using ANTLR4, and walks over the parse tree to
* interpret this source file as a Java object.
*
* @param path
* location of the file
* @return an interpreted source file, or null in case of an error.
*/
@Nullable
private ReoFile<T> parse(String path) {
try {
return parse(new ANTLRFileStream(path), path);
} catch (IOException e) {
m.add("Cannot open " + path + ".");
}
return null;
}
Interpreter.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:Reo
作者:
评论列表
文章目录