averbraeck / opentrafficsim

Open Source Multi-Level Traffic Simulator
BSD 3-Clause "New" or "Revised" License
28 stars 8 forks source link

Integrate DJUNITS 2.1.1 in editor #113

Closed WJSchakel closed 4 months ago

WJSchakel commented 4 months ago

In DJUNITS 2.1.1 some changes have been made to the expression evaluator which the editor can use or has fixes for.

WJSchakel commented 4 months ago

Two hacks where ScenarioParser (an implementation of RetrieveValue for Eval) stores the retrieved value before its unsuccessfully returned due to its non-Scalar non-Boolean type, which is then directly obtained by the calling code experiencing an exception, have been removed.

WJSchakel commented 4 months ago

The editor and XML specification now allow _, @ and # in expression variable names, including at the start.

WJSchakel commented 4 months ago

Running T-junction from the editor with scenarios works with the above changes.