use of com.sri.ai.expresso.core.ExtensionalIndexExpressionsSet in project aic-expresso by aic-sri-international.
the class AntlrGrinderParserTest method makeScopingSyntaxTree.
/**
* Makes a scoping expression out of a list of scoping variables.
*/
public static SyntaxTree makeScopingSyntaxTree(IndexExpressionsSet indexExpressions) {
List<Expression> indexExpressionsList = ((ExtensionalIndexExpressionsSet) indexExpressions).getList();
Expression kleeneListExpression = Expressions.makeKleeneListIfNeeded(indexExpressionsList);
SyntaxTree kleeneListSyntaxTree = kleeneListExpression.getSyntaxTree();
SyntaxTree result = SyntaxTrees.makeCompoundSyntaxTree(IntensionalSet.SCOPED_VARIABLES_LABEL, kleeneListSyntaxTree);
return result;
}
Aggregations