- Make sure that the Tycoon Machine and all *.o-Files are up-to-date:
cd ${TYCOON_ROOT}
make
If errors occur:
- Set the configuration:
sh configure
- Remove all old object files:
make clean
- Try again.
- For the following steps you need a Tycoon Machine (see above) and an initial Tycoon compiler, consisting of the following files:
${TYCOON_ROOT}/boot/tycoon.x
${TYCOON_ROOT}/boot/tlSyntax.data.x
${TYCOON_ROOT}/boot/cmdSyntax.data.x
${TYCOON_ROOT}/boot/importSyntax.data.x
${TYCOON_ROOT}/boot/boot.tyc
If any of these files is missing, copy it from someone else, or get it from a backup tape.
- The simple, long way:
cd ${TYCOON_ROOT}/src
sh Boot/strap
sh Boot/generateTLParser.sh
sh Boot/generateCmdParser.sh
All modules are compiled, if necessary.
- Shortcut: Generate a new compiler (tycoon.x):
make tycoon
do makeLibraries Boot;
import tycoon;
tycoon.generateBootFile("tycoon.x");
do exit;
- Shortcut: Generate new parsers (tlSyntax.data.x, cmdSyntax.data.x, importSyntax.data.x):
make tycoon
do makeLibraries Boot;
import tlSyntaxUnit :Main;
tlSyntaxUnit.main(array "tlSyntax.data.x" "importSyntax.data.x" end);
import tySyntaxCommand :Main;
tySyntaxCommand.main(array "cmdSyntax.data.x" end);
do exit;
- Shortcut: Change of an implementation module (implMod.tm):
make tycoon
do makeLibraries Boot;
do load "tl0/implMod.tm";
Proceed as above, depending on implMod.tm: generate new compiler and/or parsers.
- Shortcut: Change of an interface module:
make tycoon
do makeLibraries Boot;
do make tycoon;
do make tlSyntaxUnit;
do make tySyntaxCommand;
Proceed as above, generate new compiler and/or parsers.