T-gen 2.1 Port to Smalltalk MT Documentation

Release 1.2

Rolf K. Wilms, Febuary 2000

 

This is the documentation for a port of T-gen 2.1, a parser generator for Smalltalk, to the Smalltalk MT VC 2.6 development environment. It only covers the differences to the original version, for complete documentation refer to the files in the original T-Gen distribution which can be found at ftp://st.cs.uiuc.edu/pub/Smalltalk/st80_r41/T-gen2.1 .

The latest version of the port to Smalltalk MT can be found at http://www.ruhr.de/home/kottan.

Smalltalk MT is © by Object Connect Sarl, http://www.objectconnect.com.

Contents

Legal Information

Read the text in Object>>tgenCopyright. This port may be used and distributed under the same conditions. Summarized, this means that you can use, extend and distribute T-gen for free even for commercial purposes, provided that you respect and protect the reputation of all different authors and that there is NO WARRANTY.

Installation

  1. Create a dicrectory for the T-gen files
  2. Extract the files of the distributrion archive to that directory
  3. Make sure that at least Smalltalk MT VC 2.6 Release is installed, this port of T-gen will not work with earlier versions
  4. Make sure that stack-based printing in 'Image Properties->Settings->Preferences' is turned off. This should be the default after smalltalk.sp has been loaded. Don't turn it on while using T-gen, because stack-based printing is incompatible with T-gen.
  5. Load tgen21.sp with the project browser. (The dependency project asked for is in vc26_install_dir\sources\dependency)
  6. After loading, you'll have to save and compress the image before T-gen will work
  7. After the compressed image has been restarted, execute TranslatorGenerator class>>runAllTests (this is the test suite) to make sure that everything works fine. The results are printed on the Transcript.

Uninstallation

  1. Close the T-gen user interface windows
  2. Execute TGenFrameWindow>>removing
  3. Unload tgen21.sp from the ProjectBrowser
  4. Remove the directory you’ve created for T-gen

Getting started

  1. Print out the T-gen documentation usersguide.pdf using Acrobat Reader and read it
  2. Open T-gen from the Transcript/Tools menu
  3. Load one of the examples from the examples directory using File/Open All
  4. Accept the token spec, then the grammar spec, then the test input. The Transcript will show the results.

Known problems

User interface hints

Changes to T-Gen for porting to Smalltalk MT

Possible enhancements

Files included in this release

tgen21.sp T-gen project file for Smalltalk MT
tgen21forMT.htm this file
usersguide.pdf original T-gen documentation converted to PDF format
Examples directory containing example grammars
readme.txt A very short readme

 

History

Release 1.2

Release 1.1

Feedback

Please send comments and suggestions regarding the port of T-gen 2.1 to Smalltalk MT to

Rolf K. Wilms, rwilms@kottan.ruhr.de