Token parser should allow subexpressions.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-31 14:30:24 +02:00
parent 79ef15c54c
commit c7256dbe0c

View File

@ -35,7 +35,6 @@ namespace qmu
QmuTokenParser::QmuTokenParser() QmuTokenParser::QmuTokenParser()
{ {
InitCharSets(); InitCharSets();
setAllowSubexpressions(false);//Only one expression per time
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -61,9 +60,7 @@ QmuTokenParser::QmuTokenParser(const QString &formula, bool osSeparator,
:QmuFormulaBase() :QmuFormulaBase()
{ {
InitCharSets(); InitCharSets();
setAllowSubexpressions(false);//Only one expression per time
SetVarFactory(AddVariable, this); SetVarFactory(AddVariable, this);
SetSepForTr(osSeparator, fromUser); SetSepForTr(osSeparator, fromUser);
// Fix for issue #776. Valentina cannot recognize translated functions. // Fix for issue #776. Valentina cannot recognize translated functions.