Skip to content

Commit

Permalink
- Fix lexer to only add optimica keywords if +g=Optimica is used
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13903 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 15, 2012
1 parent 821b974 commit 983e45b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Parser/BaseModelica_Lexer.g
Expand Up @@ -263,11 +263,11 @@ SEMICOLON : ';';
// Optimica
// ---------
OPTIMIZATION : 'optimization';
CONSTRAINT : 'constraint';
//INITIALGUESS : 'initialGuess';
//FREE : 'free';
//FINALTIME : 'finalTime';
OPTIMIZATION : 'optimization' { if (!optimica_enabled()) $type = IDENT; };
CONSTRAINT : 'constraint' { if (!optimica_enabled()) $type = IDENT; };
//INITIALGUESS : 'initialGuess' { if (!optimica_enabled()) $type = IDENT; };
//FREE : 'free' { if (!optimica_enabled()) $type = IDENT; };
//FINALTIME : 'finalTime' { if (!optimica_enabled()) $type = IDENT; };
/*------------------------------------------------------------------
* LEXER RULES
Expand Down

0 comments on commit 983e45b

Please sign in to comment.