Skip to content

Commit

Permalink
snapshot. Works, sort of.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@289 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x97davka committed Jun 3, 1998
1 parent 913cdd7 commit 2c2fc39
Show file tree
Hide file tree
Showing 11 changed files with 505 additions and 275 deletions.
11 changes: 8 additions & 3 deletions modeq/absyn.rml
Expand Up @@ -63,23 +63,28 @@ module Absyn:
* Modification option

datatype Equation = EQ_EXPR of Exp (* more later? *)
| EQ_COND (* FIXME *)
| EQ_EQUALS of Exp * Exp
| EQ_CONNECT of ComponentRef * ComponentRef
| EQ_FOR of Ident * Exp * Equation list

datatype Algorithm = ALGORITHM (* FIXME *)
datatype Algorithm = ALG_ASSIGN of ComponentRef * Exp
| ALG_COND (* FIXME *)
| ALG_FOR of Ident * Exp * Algorithm list
| ALG_WHILE of Exp * Algorithm list
| ALG_WHEN of Exp * Algorithm list

datatype Modification = CLASSMOD of ElementArg list * Exp option

datatype ElementArg = MODIFICATION of bool * Path * Modification
datatype ElementArg = MODIFICATION of bool * ComponentRef * Modification
| REDECLARATION of bool * ElementSpec

(** - Variable attributes *)
datatype VarAttr = ATTR of ArrayDim
* bool (* flow *)
* VarType (* parameter *)
* Direction
datatype VarType = VAR | PARAM | CONST
datatype VarType = VAR | DISCRETE | PARAM | CONST
datatype Direction = INPUT | OUTPUT | BIDIR

(** - Array dimensions *)
Expand Down

0 comments on commit 2c2fc39

Please sign in to comment.