MARTE 1.0b2 FTF Avatar
  1. OMG Issue

MARTE — The VSL grammar does not define the "( )" symbol

  • Key: MARTE-24
  • Legacy Issue Number: 11549
  • Status: closed  
  • Source: THALES ( Sebastien Demathieu)
  • Summary:

    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
  • Disposition Summary:

    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,
    Integer, etc.).
    Hence, this resolution proposes to add/modify VSL as defined below.

  • Updated: Fri, 6 Mar 2015 20:58 GMT