Download List

Project Description

4tH is a Forth compiler with a little difference. Instead of the standard Forth engine it features a conventional compiler. 4tH is a very small compiler that can create bytecode, C-embeddable bytecode, standalone executables, but also works fine as a scripting language. It supports about 95% of the ANS Forth CORE wordset and features conditional compilation, pipes, files, assertions, forward declarations, enumerations, structures, suspended execution, recursion, include files, etc. It comes with an RPN calculator, line editor, preprocessor, compiler, decompiler, C-source generator, a virtual machine, and a multitasking environment.

System Requirements

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2003-04-18 17:08
3.3d release 2

Source files can now be included at compile time. The existence of
words in the dictionary can now be checked at compile time using
[DEFINED]. More COMUS words have been added. The 4tH program now
allows you to enter parameters in the menu. The Linux module
"binfmt_misc" is now supported.
Tags: Major feature enhancements

2003-03-14 17:18
3.3d2

Sourcefiles can now be included by adding a '[NEEDS' directive in the
source. The COMUS word '[DEFINED]' has been added. The CORE EXT word
'C"' has been discarded.
Tags: Development, Major feature enhancements

2003-01-18 02:04
3.3d

The words FILE and TTY have been discarded. The words FILE, AS, USE, DEFER, IS, STDIN, and STDOUT have been added. The words INPUT, OUTPUT, OPEN, and CLOSE have been changed. Multiple files can be opened concurrently. More COMUS words have been added. A fix was made for a segment violation which was caused in 4th.c when an invalid sequence of commands was issued. Errorhandling improvements for when a pipe cannot be opened were made. The file support in function exec_4th() has been rewritten, and DoInitValue() was added.
Tags: Initial freshmeat announcement

Project Resources