/// <summary> /// Builds PDDL logical expression from the input data. /// </summary> /// <param name="expression">Input data expression.</param> /// <returns>Built logical expression.</returns> public IExpression Build(InputData.PDDL.Expression expression) { Debug.Assert(ExpressionStack.Count == 0); ExpressionStack.Clear(); expression.Accept(this); Debug.Assert(ExpressionStack.Count == 1); return(ExpressionStack.Pop()); }