Skip to content

Commit

Permalink
- this change is to enable querying of Modelica Standard Library 3.2 …
Browse files Browse the repository at this point in the history
…which has a class called Code.

- changed Code quoting to use $Code in Parser/BaseModelica_Lexer.g
  + allow $Code in END_IDENT token (to be able to use type $Code end $Code; in ModelicaBuiltin.mo).
  + changes in Compiler/FrontEnd/ModelicaBuiltin.mo to use $Code instead of Code.
  + documentation updates in doc/OpenModelicaAPI-Howto/OMC_API-HowTo.tex and doc/OpenModelicaUsersGuide.doc
  + changes to Compiler/FrontEnd/Dump.mo to dump CodeNode using $Code.
  + changes everywhere where Code was used to use $Code (.mo, .mos, .onb, .c*)
  + updated OMEdit and OMOptim to use $Code.
  + more interactive tests in testsuite/interactive/interactive_api_calls.mos (from doc/OpenModelicaAPI-Howto/OMC_API-HowTo.tex)
  + show statements in more testsuite/interactive tests.
  + update the Parser/omcc/* files 
- removed testsuite/HumMod directory
- removed doc/OpenModelica-TortoiseSVN+Putty-HOWTO.doc as is way old and not useful anymore.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12204 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jun 25, 2012
1 parent 2ac2856 commit dc80170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/OMCProxy.cpp
Expand Up @@ -1015,9 +1015,9 @@ QString OMCProxy::getComponentModifierValue(QString modelName, QString name)
bool OMCProxy::setComponentModifierValue(QString modelName, QString name, QString value)
{
if (value.compare("=") == 0)
sendCommand("setComponentModifierValue(" + modelName + "," + name + ", Code(()))");
sendCommand("setComponentModifierValue(" + modelName + "," + name + ", $Code(()))");
else
sendCommand("setComponentModifierValue(" + modelName + "," + name + ", Code(" + value + "))");
sendCommand("setComponentModifierValue(" + modelName + "," + name + ", $Code(" + value + "))");
if (getResult().toLower().contains("ok"))
return true;
else
Expand Down

0 comments on commit dc80170

Please sign in to comment.