Skip to content

Commit ca68eba

Browse files
author
Peter Aronsson
committed
Changed dae variable implementation from list to binary tree
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1364 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 892c6f7 commit ca68eba

File tree

6 files changed

+802
-376
lines changed

6 files changed

+802
-376
lines changed

modeq/absyn.rml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -263,23 +263,23 @@ module Absyn:
263263
| CREF of ComponentRef
264264
| STRING of string
265265
| BOOL of bool
266-
| BINARY of Exp * Operator * Exp
267-
| UNARY of Operator * Exp
268-
| LBINARY of Exp * Operator * Exp
269-
| LUNARY of Operator * Exp
270-
| RELATION of Exp * Operator * Exp
271-
| IFEXP of Exp * Exp * Exp * (Exp * Exp) list
272-
| CALL of ComponentRef * FunctionArgs
266+
| BINARY of Exp * Operator * Exp (* Binary operations, e.g. a*b *)
267+
| UNARY of Operator * Exp (* Unary operations, e.g. -(x) *)
268+
| LBINARY of Exp * Operator * Exp (* Logical binary operations: and, or *)
269+
| LUNARY of Operator * Exp (* Logical unary operations: not *)
270+
| RELATION of Exp * Operator * Exp (* Relations, e.g. a >= 0 *)
271+
| IFEXP of Exp * Exp * Exp * (Exp * Exp) list (* If expressions *)
272+
| CALL of ComponentRef * FunctionArgs (* Function calls *)
273273
(* | ARRAY of Exp list *)
274274

275275
(*P.R ARRAY consists of an vector of the dimension sizes and an vector consiting of the vector data.*)
276276
| ARRAY of Exp list
277277

278278
| MATRIX of Exp list list
279-
| RANGE of Exp * Exp option * Exp
280-
| TUPLE of Exp list (*PR.*)
281-
| END
282-
| CODE of Code
279+
| RANGE of Exp * Exp option * Exp (* Range expressions, e.g. 1:10 or 1:0.5:10 *)
280+
| TUPLE of Exp list (*PR.*) (* Tuples used in function calls returning several values *)
281+
| END (* array access operator for last element, e.g. a[end]:=1; *)
282+
| CODE of Code (* Modelica AST Code constructors *)
283283

284284
(** The `Exp' datatype is the container of a Modelica expression. *)
285285

0 commit comments

Comments
 (0)