Changeset 15386
- Timestamp:
- 2013-02-28T14:45:42+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Parser/BaseModelica_Lexer.g
r15300 r15386 185 185 186 186 T_ALGORITHM : 'algorithm'; 187 T_AND : 'and'; 187 T_AND : 'and' | '&&' { 188 ModelicaParser_lexerError = ANTLR3_TRUE; 189 c_add_source_message(2, ErrorType_syntax, ErrorLevel_error, "Please use 'and' for logical and since '&&' is not a valid Modelica construct.", 190 NULL, 0, $line, $pos+1, $line, $pos+3, 191 ModelicaParser_readonly, ModelicaParser_filename_C_testsuiteFriendly); 192 }; 188 193 T_ANNOTATION : 'annotation'; 189 194 BLOCK : 'block'; … … 219 224 LOOP : 'loop'; 220 225 MODEL : 'model'; 221 T_NOT : 'not'; 226 T_NOT : 'not' | '!' { 227 ModelicaParser_lexerError = ANTLR3_TRUE; 228 c_add_source_message(2, ErrorType_syntax, ErrorLevel_error, "Please use 'not' for logical not since '!' is not a valid Modelica construct.", 229 NULL, 0, $line, $pos+1, $line, $pos+2, 230 ModelicaParser_readonly, ModelicaParser_filename_C_testsuiteFriendly); 231 }; 222 232 T_OUTER : 'outer'; 223 233 OPERATOR : 'operator'; 224 234 OVERLOAD : '$overload'; // OpenModelica extension 225 T_OR : 'or'; 235 T_OR : 'or' | '||' { 236 ModelicaParser_lexerError = ANTLR3_TRUE; 237 c_add_source_message(2, ErrorType_syntax, ErrorLevel_error, "Please use 'or' for logical or since '||' is not a valid Modelica construct.", 238 NULL, 0, $line, $pos+1, $line, $pos+3, 239 ModelicaParser_readonly, ModelicaParser_filename_C_testsuiteFriendly); 240 }; 226 241 T_OUTPUT : 'output'; 227 242 T_PACKAGE : 'package';
Note: See TracChangeset
for help on using the changeset viewer.