Skip to content

Commit 94de2f0

Browse files
author
Kaj Nyström
committed
Documentation race again! Wohoo!
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1257 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent a3f9cb7 commit 94de2f0

File tree

8 files changed

+65
-21
lines changed

8 files changed

+65
-21
lines changed

modeq/algorithm.rml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
** processing of any kind, except for building the datastructure is
3434
** done in this module.
3535
**
36-
**
36+
** It is used primarily by inst.rml which both provides its input data
37+
** and uses its "output" data.
3738
**
3839
**)
3940

modeq/classinf.rml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
** relation `start' initializes a new machine, and the relation
3636
** `trans' signals transitions in the machine. Finally, the state
3737
** can be checked agains a restriction with the `valid' relation.
38-
**
38+
**
3939
**)
4040

4141
module ClassInf :

modeq/classloader.rml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
**
2727
** RCS: $Id$
2828
**
29-
** This module loads classes from $MODELICAPATH.
29+
** This module loads classes from $MODELICAPATH. It exports only one
30+
** relation: the load_class relation. It is currently (2004-09-27)
31+
** only used by ceval.rml when using the "loadclass" function in
32+
** the interactive environment.
33+
**
3034
**)
3135

3236
module ClassLoader:
@@ -54,7 +58,7 @@ relation load_class: (Absyn.Path, string) => (Absyn.Program) =
5458

5559
(** Simple names: Just load the file if it can be found in $MODELICAPATH* *)
5660
rule System.group_delimiter => gd &
57-
System.strtok(mp,gd) => mps &
61+
System.strtok(mp,gd) => mps &
5862
load_class_from_mps(classname,mps) => p
5963
-------------------------------------
6064
load_class(Absyn.IDENT(classname),mp) => p
@@ -69,7 +73,7 @@ relation load_class: (Absyn.Path, string) => (Absyn.Program) =
6973
(** Qualified names: Else, load the complete package and then check that **)
7074
(** the package contains the file **)
7175
rule System.group_delimiter => gd &
72-
System.strtok(mp,gd) => mps &
76+
System.strtok(mp,gd) => mps &
7377
load_complete_package_from_mps(pack,mps,Absyn.TOP,Absyn.PROGRAM([],Absyn.TOP)) => p &
7478
Interactive.get_pathed_class_in_program(path,p)=> _
7579
-------------------------------------

modeq/connect.rml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@
2626
**
2727
** RCS: $Id$
2828
**
29-
** Connections generate connection sets which are constructed during
30-
** instantiation. When a connection set is generated, it is used to
31-
** create a number of equations.
32-
**
33-
** This module performs connection set management.
29+
** Connections generate connection sets (datatype SET is described below)
30+
** which are constructed during instantiation. When a connection
31+
** set is generated, it is used to create a number of equations.
32+
** The kind of equations created depends on the type of the set.
33+
**
34+
** Connect.rml is called from inst.rml and is responsible for
35+
** creation of all connect-equations later passed to the DAE module
36+
** in dae.rml.
37+
**
3438
**)
3539

3640
module Connect :

modeq/corba.rml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,21 @@
2323
** module: Corba
2424
** description: Modelica Corba communication module
2525
**
26-
** RCS: %W %E
26+
** RCS: $Id$
2727
**
28-
** This is the Corba connection module of the compiler
28+
** This is the CORBA connection module of the compiler
29+
**
30+
** The actual implementation differs between Windows and Unix versions.
31+
** The Windows implementation is located in ./winruntime and the Unix
32+
** version lies in ./runtime
33+
**
34+
** OpenModelica does not in itself include a complete CORBA implementaton.
35+
** You need to download one, for example MICO from http://www.mico.org.
36+
**
37+
** There exists some options that can be sent to configure concerinng
38+
** the usage of corba:
39+
** --with-CORBA=/location/of/corba/library
40+
** --without-CORBA
2941
**)
3042

3143
module Corba:

modeq/dump.rml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@
3232
** The implementation of the relations are excluded from the report,
3333
** as they occupy a lot of space and do not convey any useful
3434
** semantic information.
35+
**
36+
** The main entrypoint for this module is the relation "dump" which
37+
** takes an entire program as an argument, and prints it all in
38+
** Modelica source form. The other interface relations can be used
39+
** to print smaller portions of a program.
3540
**)
3641

3742

3843
module Dump:
3944

4045
with "absyn.rml"
4146
with "interactive.rml"
42-
with "debug.rml"
4347

4448
type Ident = string
4549

@@ -88,6 +92,7 @@ with "classinf.rml"
8892
with "rtopts.rml"
8993
with "print.rml"
9094
with "util.rml"
95+
with "debug.rml"
9196

9297
(* Relations *)
9398

modeq/prefix.rml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@
2626
**
2727
** RCS: $Id$
2828
**
29-
** When instantiating an expression, there is a prefix that has to be
30-
** added to each variable name to be able to use it in the flattened
31-
** equation set. These relations take care of adding the prefixes.
29+
** When instantiating an expression, there is a prefix that *sometimes*
30+
** has to be added to each variable name to be able to use it in the
31+
** flattened equation set.
32+
**
33+
** A prefix for a variable x could be for example a.b.c so that the
34+
** fully qualified name is a.b.c.x.
35+
**
36+
** Some components should not have prefixes added, for example constants.
37+
**
3238
**)
3339

3440
module Prefix:
@@ -77,8 +83,7 @@ relation print_prefix_str : Prefix => string =
7783

7884
rule print_prefix_str rest => rest' &
7985
string_append (rest', ".") => s &
80-
string_append (s, str) => s' &
81-
string_append (s', "[]") => s''
86+
string_append (s, str) => s' string_append (s', "[]") => s''
8287
----------------------------
8388
print_prefix_str PRE(str, _, rest) => s''
8489

@@ -268,15 +273,12 @@ relation prefix_exp : (Env.Env,Exp.Exp,Prefix) => Exp.Exp =
268273
-----------------------
269274
prefix_exp(env,Exp.CALL(f,es,b,bi),p) => Exp.CALL(f,es',b,bi)
270275

271-
(**)
272276
axiom prefix_exp(env,Exp.ARRAY(t,a,[]),p) => Exp.ARRAY(t,a,[])
273277

274278
rule prefix_exp_list(env,es,p) => es'
275279
-------------------------------
276280
prefix_exp(env,Exp.ARRAY(t,a,es),p) => Exp.ARRAY(t,a,es')
277281

278-
279-
(* PR. *)
280282
rule prefix_exp_list(env,es,p) => es'
281283
-------------------------------
282284
prefix_exp(env,Exp.TUPLE(es),p) => Exp.TUPLE(es')

modeq/rtopts.rml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@
1919

2020
*)
2121

22+
(**
23+
** file: rtopts.rml
24+
** module: RTOpts
25+
** description: Runtime options
26+
**
27+
** RCS: $Id$
28+
**
29+
** This module takes care of command line options. It is possible to
30+
** ask it what flags are set, what arguments were given etc.
31+
**
32+
** This module is used pretty much everywhere where debug calls are made.
33+
**
34+
**)
35+
36+
37+
2238
module RTOpts:
2339

2440
relation args : string list => string list

0 commit comments

Comments
 (0)