COMPILING AND ANALYZING FORTH IN PROLOG.

被引:0
|
作者
Dixon, R.D. [1 ]
Hemmendinger, David [1 ]
机构
[1] Wright State Univ, Dayton, OH, USA, Wright State Univ, Dayton, OH, USA
来源
关键词
COMPUTER OPERATING SYSTEMS - Program Compilers;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
A parser, a code generator, a semantic evaluator and an interpreter for Forth are written in Prolog. This is an investigative tool only and the semantic model includes a stack, input and output streams and segmented memory. The structure follows the usual Forth models but the somewhat more concise description emphasizes the exact manner in which Forth words control their environment. Compilers of this type together with Prolog compilers that generate Forth code make an interesting package that might be used to port both languages to a new machine, particularly a Forth machine. The abstraction of the Forth process in this manner may also make the environment more understandable to people inside and outside the Forth user community and thus allow both the wider acceptance of Forth and the generalization of Forth techniques to new languages.
引用
收藏
页码:535 / 554
相关论文
共 43 条
  • [41] Compiling and analyzing a tagged learner corpus: a corpus-based study of adjective uses
    Castillo Rodriguez, Cristina
    Diaz Lage, Jose Maria
    Martinez, Beatriz Rubio
    CIRCULO DE LINGUISTICA APLICADA A LA COMUNICACION, 2020, (81): : 115 - 136
  • [42] 几种计算机语言的特性分析——FORTH、APL、LISP、Modula2、Smalltalk、PROLOG
    陆倜
    卢江
    食品科学技术学报, 1984, (02) : 287 - 294
  • [43] USE OF A FORTH-BASED PROLOG FOR REAL-TIME EXPERT SYSTEMS. I. SPACELAB LIFE SCIENCES EXPERIMENT APPLICATION.
    Paloski, William H.
    Odette, Louis L.
    Krever, Alfred J.
    West, Allison K.
    The Journal of Forth application and research, 1987, 4 (04): : 463 - 476