Opened 14 years ago

Last modified 14 years ago

#1254 closed defect (fixed)

MetaModelica keywords are always switched on also for Modelica parsing

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: high Milestone:
Component: Version:
Keywords: Cc: Peter Aronsson, Martin Sjölund

Description

MetaModelica keywords are always switched on, preventing users to use e.g. 'as' as an identifier. There should be a switch to the compiler so it is fully Modelica-compliant, i.e. the keywords for MetaModelica that are not part of Modelica are treated as identifiers.

Change History (3)

comment:2 by Martin Sjölund, 14 years ago

This is fixed in the new ANTLR3 parser; it switches lexer based on compiler flags (and I guess we can implement preprocessor macros so that we can compile omc without this lexer).

But it will take a little longer before it's stable

comment:3 by Martin Sjölund, 14 years ago

Fixed in trunk (see testcases for example in testsuite/parser)

Note: See TracTickets for help on using tickets.