Legacy Issue Number: 11549
Source: THALES ( Sebastien Demathieu)
The VSL grammar does not define the "( )" symbol that allows one to indicate priorities in the syntax of arithmetical expressions. In the expression, "((1+2) * 3)" for instance.
Reported: MARTE 1.0b1 — Mon, 8 Oct 2007 04:00 GMT
Disposition: Resolved — MARTE 1.0b2
To allow building unambiguous expressions (mainly arithmetical ones), the
language should include both proper rules supporting parentheses (i.e., “(“ and
“)”) as well as precedence rules to specify the order in operations evaluation.
In VSL, these aspects concern two different sections of MARTE. Parentheses
need to be specified in the VSL grammar section, and precedence rules in the
library of primitive types. The latter is because “operations” (e.g., arithmetic
operations: +, -, *, /) are defined as operations of MARTE primitive types (Real,
Hence, this resolution proposes to add/modify VSL as defined below.
Updated: Fri, 6 Mar 2015 20:58 GMT