Thierry Cornelis

E-mail:thierry.cornelis@biomath.rug.ac.be
 
Home
Thesis
Prototype 0
Prototype 1
Prototype 2
MSL4.0
Links
McGill SOCS
RUG - FTW

Parsing and code-generation for the Model Specification Language (MSL) compiler.

In this prototype we integrate AToM3 with the parser from prototype1.
The directory with the code: prototype1.tar.bz2.

Setup

  • Save the file to your AToM3 directory and unzip en untar it.
  • Type "make" in the directory. This generates the file msl.so.
  • Change your AToM3 options (Marcs tutorial).
  • Start AToM3.
  • Load the meta-model algebra_entities.py

Use

When the meta-model is loaded you should get this screen:
atom3_parser_1.png
Press the "parse expression"-button, the follwing window will popup:
msl_gui.png
In this window you have the choice between parsing a string or a file containing expressions. You can also choose to display the trees vertical or horizontal.

String

Enter the expression and press "OK".
string_gui.png

File

Select the file and press "Open".
file_gui.png

Saving parsed expressions

Like every model: File->Save model.

Remarks

When you parse more then one expression or a file containing more then one expression the trees are displayed in a way that they do not overlap. This property is part of the parser (C-code) and not of AToM3 (Python-code). This is not realy OO, so a fix is needed.
Google