From: <hp...@us...> - 2014-09-28 06:43:08
|
Revision: 1456 http://sourceforge.net/p/scidavis/svn/1456 Author: hpcoder Date: 2014-09-28 06:43:04 +0000 (Sun, 28 Sep 2014) Log Message: ----------- Workaround fix for ticket #205. Modified Paths: -------------- branches/development/scidavis/src/MuParserScript.cpp Modified: branches/development/scidavis/src/MuParserScript.cpp =================================================================== --- branches/development/scidavis/src/MuParserScript.cpp 2014-09-23 00:19:48 UTC (rev 1455) +++ branches/development/scidavis/src/MuParserScript.cpp 2014-09-28 06:43:04 UTC (rev 1456) @@ -140,13 +140,16 @@ m_parser.SetVarFactory(variableFactory, this); // redefine characters for operators to include ";" - m_parser.DefineOprtChars( + static const char opChars[]= // standard operator chars as defined in mu::Parser::InitCharSets() "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "+-*^/?<>=#!$%&|~'_" // our additions - ";"); + ";"; + m_parser.DefineOprtChars(opChars); + // work around muparser bug number 6 https://code.google.com/p/muparser/issues/detail?id=6 + m_parser.DefineInfixOprtChars(opChars); // statement separation needs lower precedence than everything else; assignment has precedence // -1, everything else defined in mu::Parser has non-negative precedence This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |