ActiveState / tdk

Tcl Dev Kit (TDK)
BSD 3-Clause "New" or "Revised" License
69 stars 36 forks source link

Add configure script and fix build/runtime issues #11

Open bandoti opened 5 months ago

bandoti commented 5 months ago

This pull request fixes various runtime issues and also introduces an configure script for building the TDK series of applications and packaging them as starkits and/or starpacks. Build instructions have been added to the README file.

The added configure script generates various TAP files (from TdkPackages.tap.in and TclCompiler.tap.in) for tracking required dependencies. Then, at build time, the make command uses the local unwrapped tclapp to bundle each TDK application either as a starkit (the default) or a starpack when a base kit is passed into the configure script.

As part of these efforts, the tbcload, tclcompiler, and tclparser have been converted to submodules. At present, these are hosted in my github repositories here:

Each of these have had very minor changes from the local code just to get them running. There are some issues getting tclcompiler to properly load with tbcload when presented with certain language features. But it currently converts into bytecodes when used by TclApp.

I would be happy to help migrate these over to ActiveState. The next step I have planned is to get teapot running with these submodules as well to avoid the code duplication.