→Compilation form: fix links
(→Compilation form: finish filling out section accidentally submitted early) |
(→Compilation form: fix links) |
||
Line 15:
The [[triple script dialect]] has two forms: '''compilation form''' and '''normal form'''. Normal form is the pre-compilation form that exists in [[1 file = 1 module = 1 class|files dedicated to a single source module]], and compilation from is the form that source code appears in after it has been prepared for execution (or distribution) in concatenated block format. The rules for mapping between compilation form and normal form are simple:
* <code>import</code> and <code>export</code> in normal form get replaced by <code>/// import</code> and <code>/// export</code> [[triple slash
* in compilation form, source modules appear wrapped with [[triple slash script
* [[attributes]] in compilation form are stripped of [[triple slash
Compilation form may use either t-blocks or g-blocks. It is forbidden to mix t-blocks and g-blocks within the same script. It is best to use [[trplkt]]'s <code>publish</code> command to handle translating a script from g-blocks to t-blocks before distribution.
|