Code fragment interface
Code fragments are one- or two-line code snippets that are used only in the translation thread UPoCs. They are different from TPS in that users write the code.
Code fragments are evaluated at the global scope after special Tcl global variables are set.
This table shows the included global variables:
Global variable | Description |
---|---|
xlateInVals |
Retrieved value strings. |
xlateInTypes |
Retrieved data types. |
xlateOutVals |
Value strings going into the next translation phase. |
xlateOutTypes |
Data types going into the next translation phase. |
xlateId |
The Translation Pseudo Machine (XPM) handle for use with xpm commands. |
xlateInList |
The list of input objects. |
xlateOutList |
The list of destination objects. |