A GNU Treelang installation includes a modified version of the gcc
command.
In a non-Treelang installation, gcc
recognizes C, C++,
and Objective-C source files.
In a GNU Treelang installation, gcc
also recognizes Treelang source
files and accepts Treelang-specific command-line options, plus some
command-line options that are designed to cater to Treelang users
but apply to other languages as well.
See section `Compile C; C++; or Objective-C' in Using and Porting GNU CC,
for information on the way different languages are handled
by the GNU CC compiler (gcc
).
You can use this, combined with the output of the `gcc -v x.tree' command to get the options applicable to treelang. Treelang programs must end with the suffix `.tree'.
Treelang programs are not by default run through the c preprocessor by gcc. There is no reason why they cannot be run through the preprocessor manually, but you would need to prevent the preprocessor fron generating #line directives, using the `-P' option, otherwise tree1 will not accept the input.
Go to the first, previous, next, last section, table of contents.