Changeset 548 for branches/xtext-MDT/org.modelica.xtext.core
- Timestamp:
- 11/19/09 00:28:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/xtext-MDT/org.modelica.xtext.core/src/org/modelica/xtext/ModelicaAST.xtext
r547 r548 161 161 162 162 // 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 163 Element 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)? 173 172 /* 174 173 ConstrainClass returns uConstrainClass : … … 176 175 ; 177 176 */ 177 178 178 179 179 ElementSpecification returns ElementSpec::uElementSpec : … … 207 207 |{InnerOuter::INNER} 'inner' 208 208 |{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 // ; 215 214 216 215 // FIXME the unqualified import- perhaps in a M2M transformation … … 230 229 231 230 Component returns Component::uComponent : 232 {Component::COMPONENT} name=IDENT arrayDim=ArrayDim modification=Modification?231 {Component::COMPONENT} name=IDENT arrayDim=ArrayDim? modification=Modification? 233 232 ; 234 233 … … 396 395 397 396 ArrayDim returns ArrayDim::ArrayDim : 398 {ArrayDim::ArrayDim} ('[' subscripts+=Subscript (',' subscripts+=Subscript)* ']')?397 {ArrayDim::ArrayDim} '[' subscripts+=Subscript (',' subscripts+=Subscript)* ']' 399 398 ; 400 399
Note: See TracChangeset
for help on using the changeset viewer.