Concatenated block format

Triple scripts use the concatenated t-block file format. It's one of the most portable application file formats in the world. Refer to the existing info about the triple script file format.

As the linked page indicates, you should NOT use the "published" triple script file format for anything that is not actually a triple script. Programs are only triple scripts if they conform to all three of the triple script invariants. To experiment with similar concepts for files that are not valid triple scripts, it's not necessary to use the triple slash delimiter, so please do not use it for programs that are not intended to assert their conformance to the triplescripts.org standards.

The latest versions of trplkt, the triplescripts.org reference compiler, will by default output g-blocks—that is, delimiters set off by the  character sequence, rather than ordinary triple slash delimiters. There are no restrictions on the use of the g-block delimeters; feel free to experiment with programs that use them for whatever reason (or try using ordinary comments instead). Authors of genuine triple scripts should use trplkt to run the  command after compilation, which will should produce the same program with triple slash delimiters in place of the  -style delimiters used in programs comprising a sequence of g-blocks.

Delimiters
The scriptwrap trick 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 for valid sequences according to the ECMA-262 grammar and for a Web browser expecting markup according to the HTML5 standard.

The file format permits, as an alternative to t-blocks, delimiters that look like  and   to denote a g-blocks. 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 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) may repurpose the triple script tooling to produce files comprising a sequence of g-blocks instead, so as not to confuse recipients.