Ignore:
Timestamp:
11/19/09 00:28:56 (15 years ago)
Author:
nasko
Message:

added ecore models for elements, graphical annotation and GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/xtext-MDT/org.modelica.xtext.core/src/org/modelica/xtext/ModelicaAST.xtext

    r547 r548  
    161161   
    162162// FIXME constrainedby clause   
    163 Element returns Element::uElement:
    164     {Element::ELEMENT} specification=(ElementSpecificationImport|ElementSpecificationExtends) innerOuter=InnerOuterUnspecified
    165     |{Element::ELEMENT} redeclareKeywords=RedeclareKeyword? finalPrefix?=('final')?
    166         innerOuter=InnerOuter specification=(ElementSpecificationClassDefinition | ElementSpecificationComponents)
    167     |{Element::ELEMENT} redeclareKeywords=(RedeclareReplaceableKeyword | ReplaceableKeyword) innerOuter=InnerOuter
    168         specification=(ElementSpecificationClassDefinition | ElementSpecificationComponents)
    169         //('constrainedby' name=IDENT  constrainClass=ConstrainClass)?
    170    
    171     ;
    172 
     163Element returns Element::ELEMENT:
     164    innerOuter=InnerOuter (specification=ElementSpecificationImport | specification=ElementSpecificationExtends)
     165    | redeclareKeywords=RedeclareKeyword? finalPrefix?='final'?
     166        innerOuter=InnerOuter (specification=ElementSpecificationClassDefinition | specification=ElementSpecificationComponents)
     167    | (redeclareKeywords=RedeclareReplaceableKeyword | redeclareKeywords=ReplaceableKeyword) innerOuter=InnerOuter
     168        (specification=ElementSpecificationClassDefinition | specification=ElementSpecificationComponents) 
     169    ;
     170
     171//('constrainedby' name=IDENT  constrainClass=ConstrainClass)?
    173172/*
    174173ConstrainClass returns uConstrainClass :
     
    176175    ;
    177176*/
     177
    178178
    179179ElementSpecification returns ElementSpec::uElementSpec :
     
    207207    |{InnerOuter::INNER} 'inner'
    208208    |{InnerOuter::OUTER} 'outer'
    209     |InnerOuterUnspecified
    210     ;
    211 
    212 InnerOuterUnspecified returns InnerOuter::uInnerOuter :
    213     {InnerOuter::UNSPECIFIED}
    214     ;
     209    |{InnerOuter::UNSPECIFIED}
     210    ;
     211
     212//InnerOuterUnspecified returns InnerOuter::uInnerOuter :
     213//  ;
    215214
    216215// FIXME the unqualified import- perhaps in a M2M transformation
     
    230229
    231230Component returns Component::uComponent :
    232     {Component::COMPONENT} name=IDENT arrayDim=ArrayDim modification=Modification?
     231    {Component::COMPONENT} name=IDENT arrayDim=ArrayDim? modification=Modification?
    233232    ;
    234233
     
    396395   
    397396ArrayDim returns ArrayDim::ArrayDim :
    398     {ArrayDim::ArrayDim} ('[' subscripts+=Subscript (',' subscripts+=Subscript)* ']')?
     397    {ArrayDim::ArrayDim} '[' subscripts+=Subscript (',' subscripts+=Subscript)* ']'
    399398    ;   
    400399
Note: See TracChangeset for help on using the changeset viewer.