Skip to content

uhml/c_forth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cforth_alpha 0.3.5

Cforth is a forth interpreter implemented in C programming language. 
But now it's just a simple model, not real forth.

/*
** 2012-8-27
** 增加了list模块,把链表数据结构模块独立出来。
** 测试中,未完成。
*/

/*
** 2012-8-24
** 给str_lex模块增加了删除列表中指定节点的操作函数。
*/

/*
** 2012-8-23
** 给str_lex模块增加了销毁列表的操作函数。
*/

/*
** 2012-8-22
** 增加了str_lex模块,在测试中,未完成。
** 使用队列保存经过词法分析后的forth词。
*/

/*
** 2012-8-21
** 增加了dict字典模块,在测试中,未完成。
*/

/*
** 2012-8-20
** 使用strtok_r函数替代了strtok函数。
*/

/*
** 2012-8-19
** 修补了gets_input函数的数组溢出漏洞。
** gets_input函数指定了最大存储字符数。
*/

/*
** 2012-8-9
** 增加了error_msg核心字
** 打印出堆栈错误信息。
** 可以在code_words.h中设置DEBUG为0来关闭错误提示。
*/

/*
** 2012-7-18
** 增加了negate和bool功能
** tab字符被认为是空格
** 增加了注释模式,忽略‘(’与‘)’之间的词。
*/

/*
** 2012-7-10
** 使用有限自动机原理重写了解释器模块
** 将bye加入核心字
*/

/*
** 2012-7-10
** 使用有限自动机原理重写了isNum,作为实验
*/

/*
** 2012-7-6
** 将cforth.h独立了出来
*/

/*
** 2012-7-3
** 增加了DEBUG模式
** DEBUG模式开启时,打印出堆栈操作的错误信息
*/

/*
** 2012-7-2
** 取消了stack_error,使用clean_stack替代
*/

/*
** 2012-7-1
** 重新构造了cforth的核心字模块
** 使核心字模块与前端处理模块能分开独立编译
*/

About

Forth interpreter implemented in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published