Download List


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 requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from page, and the downloads themselves may not be hosted on OSDN.

2012-12-24 04:44

现在支持日志文件、 自动化的日期解析、 LZ77 文件压缩和 CSV 文件创建的库文件。最后一个定义的字可以以匿名方式汇编。现在面向对象支持常规方法。社区"块预留扩展词"被添加。新的窥视孔优化被添加到编译器,编译器允许自动编译时间计算。对于 GCC 可以优化 exec_4th(),通过使用编译器开关-DUSEGCCGOTO。'SMOVE' 一词已添加。
标签: Major feature enhancements
The library files now support logfiles, automated date parsing, LZ77 file compression and CSV file creation.
The last defined word can be compiled anonymously. Object orientation now supports regular methods. The Sourceforge "Block reserved extension words" were added. New peephole optimizers were added to the compiler, allowing automatic compile time calculations. exec_4th() can be optimized for GCC by using the compiler switch -DUSEGCCGOTO. The word 'SMOVE' was added.

2011-12-12 06:39

Unions and pragmas can be defined. The library files now support several polynomials, RAM disks, menus, bitfields, bit arrays, several new sorting algorithms, Morse signs, and 3VL. The preprocessor was enhanced, supporting S\", token concatenation, string comparison, variable assignment, and smart double number/FP literals. 'DOES>' can be used to change the execution semantics of basic data types. A bug in the Linux Makefile was fixed. Overflow and underflow errors in number conversion were fixed. A bug in the 'IF' statement of 4tsh was fixed. The accuracy of the 'FERF' words was improved.
标签: Bugfixes, Major feature enhancements

2011-08-20 06:06

“而”失败后,可以执行特定的代码之前退出循环。二进制字符串可以单独标签。库文件支持的UTF - 8到GBK / 2的转换(反之亦然),缀公式翻译,字符串模式匹配,有限状态机,统计功能,增强的命令行解析和全方位的ANS规定浮动的ZEN点字浮动。预编译器现在支持自定义分隔符,在宏宏,和一个字符串堆栈的字符串解析。马尔可夫引擎和缀后缀转换的例子。
标签: Stable, Minor feature enhancements
Specific code can be executed after a failed 'WHILE' just before exiting the loop. Binary strings can be tagged individually. The library files now support UTF-8 to GBK/2 conversion (and vice versa), infix formula translation, string pattern matching, finite state machines, statistical functions, enhanced command line parsing and the full range of ANS Forth floating point words for ZEN float. The preprocessor now supports string parsing with custom delimiters, macros within macros, and a string stack. A Markov engine and an infix-to-postfix converter were added to the examples.

2011-04-10 23:46

优化器添加了一个窥视孔。库文件现在支持一个微小的数据库管理系统,双数的乘法,双数师,乳胶文件的生成,而XCHAR wordset。 SEEK中现在可以使用该文件重新定位到最后。这些话2NIP和[部队]增加了。几个模糊的错误是固定的。 64位架构的支持是很大的改善。在Linux上,现在编译上演。模拟核试验,增加了预处理器的例子。
标签: Stable Major feature enhancements
A peephole optimizer was added. The library files now support a tiny database management system, double number multiplication, double number division, LaTeX file generation, and the XCHAR wordset. SEEK can now be used to reposition the file to the end. The words 2NIP and [FORCE] were added. Several obscure bugs were fixed. Support for 64-bit architectures was greatly improved. On Linux, compilation is now staged. A nuclear test simulation was added to the preprocessor examples.

2010-09-19 19:39

这句话'删除文件'和'环境@'已被添加。现在支持的库文件写作的OpenOffice,KOffice的,和微软的XML电子表格,不同的排序算法,浮点口译,GTK的服务器上,第四兼容浮点创造的I / O的禅浮动,便携式点阵图形及龟背图形。现在可以删除的文件和环境变量可以查询。符号的最大长度增加至23个字符。两只小电子表格程序中加入的例子。
标签: Stable
The words ’DELETE-FILE’ and ’ENVIRON@’ have been added. The library files now support writing OpenOffice, KOffice, and Microsoft XML spreadsheets, different sorting algorithms, the creation of floating point interpreters, GTK-server, Forth compatible floating point I/O for ZEN float, portable bitmap graphics and Turtle graphics. Files can now be deleted and environment variables can be queried. The maximum symbol length is increased to 23 characters. Two tiny spreadsheet programs were added to the examples.

Project Resources