@Override
public void exitPython_style_list(BQLParser.Python_style_listContext ctx) {
List<String> values = new ArrayList<>();
for (BQLParser.Python_style_valueContext subCtx : ctx.python_style_value()) {
if (subCtx.value() != null) {
values.add(subCtx.value().getText());
} else if (subCtx.python_style_list() != null) {
throw new ParseCancellationException(
new SemanticException(subCtx.python_style_list(), "Nested list is not supported"));
} else if (subCtx.python_style_dict() != null) {
throw new ParseCancellationException(
new SemanticException(subCtx.python_style_dict(), "Dict list is not supported"));
}
}
valProperty.put(ctx, values);
}
BQLCompilerAnalyzer.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:linden
作者:
评论列表
文章目录