Tintware Documentation : Tint Programming Language : Tint Tutorial : Compiling TintCompiling Tinttintc is used to generate Tint string libraries from source files. tintc processes arguments in the order they are passed to it. If an argument begins with -e: it is a Tint expression to be evaluated immediately, otherwise, it is a source file to be processed. Each source file is read and as each Def: is encountered, the dictionary, array, string, or procedure is defined. When a Def:Eval: is encountered, its block is evaluated immediately. The primitive, tint.save is used to generate a Tint string library. It is called with the filename for the string library, and then the names of one or more procedures, dictionaries, strings, and arrays to save to the string library. There are two different ways that tint.save can be called; one is to pass a Tint expression to tintc as the last argument using -e:; the other is to use a Def:Eval: block at the end of the last source file passed to tintc. Generating the string library for tci uses two source files: tint.tnt and tci.tnt. Using, -e:, the command line would be as follows. tintc tint.tnt tci.tnt -e:#(tint.save,tci.tsl,tci,tint) When an object (dictionary, procedure, etc) is saved, any other objects it contains are saved as well. For tci, because all the objects are defined in tci and tint, those are the only objects that need to be saved. Using Def:Eval:, the command line would be the same as above, except without the -e:#(tint.save,tci.tsl,tci,tint). At the bottom of tci.tnt a Def:Eval: would be placed as follows. Def:Eval: [*] #(tint.save,tci.tsl,tci,tint) [*] |