Skip to content
Snippets Groups Projects
Commit d942ac91 authored by marrobl's avatar marrobl
Browse files

Acabado

parent 68f8f6ff
No related branches found
No related tags found
1 merge request!1Develop
......@@ -165,6 +165,11 @@ Once the namespace is created, the different components continue to be parsed, a
![Parse each component]
If it is an equation, it will be parsed with the expression\_grammar grammar and if it is a lookup, the the lookup\_grammar grammar will be used. The first grammar commented, expression\_grammar, is found in the parse\_general\_expression function of the vensim2py module, where the ExpressionParser class is also defined, which contains all the logic associated with this grammar.
The lookup\_grammar grammar and its associated class, LookupParser, are defined in the parse\_lookup\_expression function of vensim2py module. Both grammars update the stored elements again, adding the corresponding Python translation as a new label on each element.
Once this sequence has been completed and returning to the figure [Organize each section], the PySD translation process ends with the builder. The builder module is in charge of creating the Python file containing the translation of the Vensim model, using the build function of this module. To do this, it used the namespaces created in the process and the different elements of the model previously translated and tagged with the relevant information, which will became part of the final Python file.
## The physical view of PySD
*PySD* system is deployed on a single workstation and everything that is needed is in the same component. Therefore, capturing the physical view of PySD in a deployment diagram would not add more information about the system.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment