home Forums # Technical Support FuzzyLite 3.1: [syntax error] stack expected to contain the root, but contains Reply To: FuzzyLite 3.1: [syntax error] stack expected to contain the root, but contains

#1420
Unknown
Member

Hi,

Right now I am getting this runtime error (when omnet++ simulation is running) with the FuzzyLite 5.0:

event #51428098, t=212.014939351788: fl::Exception: [syntax error] unable to parse the following expressions in antecedent <>.

This happens after 212 seconds of simulated time. Before that everything works perfectly without errors.

What could be the cause of this error? Same point in the code as in v. 3.1:

if (expressionStack.size() != 1) {
std::vector<std::string> errors;
while (expressionStack.size() > 1) {
Expression* expression = expressionStack.top();
expressionStack.pop();
errors.push_back(expression->toString());
delete expression;
}
std::ostringstream ex;
ex << “[syntax error] unable to parse the following expressions in antecedent <”
<< Op::join(errors, ” “) << “>”;
throw fl::Exception(ex.str(), FL_AT);
}