Home | Trees | Indices | Help |
|
---|
|
Converting ASTs to/from STC-X.
The basic idea for conversion to STC-X is that for every ASTNode in dm, there is a serialize_<classname> function returning some xmlstan. In general they should handle the case when their argument is None and return None in that case.
Traversal is done manually (i.e., by each serialize_X method) rather than globally since the children in the AST may not have the right order to keep XSD happy, and also since ASTs are actually a bit more complicated than trees (e.g., coordinate frames usually have multiple parents).
Classes | |
Context is a generation context. |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
wiggleClasses =
|
|
__package__ =
|
Function Details |
serializes the areas contained in rootNode. This requires all kinds of insane special handling. |
returns STC stan for the AST rootNode wrapped in the stcRoot element. The first coordinate system defined in the AST is always used for the embedded coordinates and areas. |
Variables Details |
wiggleClasses
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |