→Delimiters: actually should NOT repurpose trplkt
(→Compilation form: fix links) |
(→Delimiters: actually should NOT repurpose trplkt) |
||
Line 9:
The clever design and use of triple slash script delimiters is what allows triple scripts to run in various legacy runtimes, including Web browsers and JS engines. The triple script dialect was carefully designed so the triple slash script delimiters that appear in compilation form indicating the beginning and end of a given module are not just valid tokens for the triple script compiler, but are valid sequences according to the ECMA-262 grammar and for a Web browser expecting markup to be parsing using the HTML5 parsing algorithm.
The file format permits, as an alternative to [[t-block]]s, delimiters that look like <code>//? <script></code> and <code>//? </script></code> to denote a [[g-block]]s. Files comprising a sequence of g-blocks are not meant to have strong guarantees about the contents the way that t-blocks do. The [[trplkt/publish|trplkt publish command]] may be used to convert a valid program into a triple script for wide distribution. Programs that are *not* valid triple scripts (because they fail to abide by the three [[invariants]])
== Compilation form ==
|