Skip to content

Commit

Permalink
Use a component list in element specs.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@71 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x97davka committed Jan 8, 1998
1 parent f991f8f commit b223542
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions modeq/absyn.rml
Expand Up @@ -17,18 +17,20 @@ datatype ElementArg = MODIFICATION of bool * ComponentRef * Modification
and Modification = CLASSMOD of ElementArg list
| EQUALMOD of Exp.Exp

and Component = COMPONENT of Exp.Ident (* component name *)
* ArrayDim option
* Modification option

and ElementSpec = CLASSDEF of bool (* replaceable *)
* Class
| EXTENDS of string * ElementArg list
| COMPONENT of bool (* flow *)
* bool (* parameter *)
* bool (* constant *)
* bool (* input *)
* bool (* output *)
* Exp.Path (* type name *)
* Exp.Ident (* component name *)
* ArrayDim option
* Modification option
| COMPONENTS of bool (* flow *)
* bool (* parameter *)
* bool (* constant *)
* bool (* input *)
* bool (* output *)
* Exp.Path (* type name *)
* Component list

and Element = ELEMENT of bool (* final *)
* ElementSpec
Expand Down

0 comments on commit b223542

Please sign in to comment.