Changeset 13903


Ignore:
Timestamp:
2012-11-15T14:34:37+01:00 (11 years ago)
Author:
sjoelund.se
Message:
  • Fix lexer to only add optimica keywords if +g=Optimica is used
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Parser/BaseModelica_Lexer.g

    r13902 r13903  
    264264// ---------
    265265
    266 OPTIMIZATION : 'optimization';
    267 CONSTRAINT : 'constraint';
    268 //INITIALGUESS : 'initialGuess';
    269 //FREE : 'free';
    270 //FINALTIME : 'finalTime';
     266OPTIMIZATION : 'optimization' { if (!optimica_enabled()) $type = IDENT; };
     267CONSTRAINT : 'constraint' { if (!optimica_enabled()) $type = IDENT; };
     268//INITIALGUESS : 'initialGuess' { if (!optimica_enabled()) $type = IDENT; };
     269//FREE : 'free' { if (!optimica_enabled()) $type = IDENT; };
     270//FINALTIME : 'finalTime' { if (!optimica_enabled()) $type = IDENT; };
    271271
    272272/*------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.