《编写交互式编译器与解释器》封面

编写交互式编译器与解释器

Writing interactive compilers and interpreters

Peter John Brown · 初版 1979 年

1人推荐
2位读者提及
3次提及

Hacker News 上怎么说

  • 关于解释器(相较于编译器)的文献相当少。这几本我读得很过瘾:1. Peter John Brown,1979 年,《Writing Interactive Compilers and Interpreters》。2. Timothy Budd,1987 年,《A Little Smalltalk》。3. Ralph E. Griswold,2000 年,《The Icon Programming Language》第 3 版。4. Pat Shaughnessy,2013 年,《Ruby Under a Microscope: An Illustrated Guide to Ruby Internals》……

    The literature on interpreters (vs. compilers) is pretty thin. I enjoyed reading these: 1. Peter John Brown. 1979. Writing Interactive Compilers and Interpreters. 2. Timothy Budd. 1987. A Little Smalltalk. 3. Ralph E. Griswold. 2000. The Icon Programming Language, 3e. 4. Pat Shaughnessy. 2013. Ruby Under a Microscope: An Illustrated Guide to Ruby Internals.…

  • Peter John Brown 写的《Writing Interactive Compilers and Interpreters》(1979)挺奇特的,原因在于他对文字的文学素养有着不同寻常的讲究。在他写用户手册的告诫清单里有这么一条:多读书。读那些关于整体……

    Writing Interactive Compilers and Interpreters by Peter John Brown (1979) is quirky in the sense that he paid unusual attention to the literary quality of his prose. Among his admonitions for writing user manuals is this: Read. Books on overall…

  • ……语句来 debug 代码。TSB BASIC 没有 compile/link 步骤,它在你输入代码行时就将其 tokenize,而解释器本质上就是针对这些 token 跑一个巨大的 switch 语句。P. J Brown 的书《Writing Interactive Compilers and Interpreters》(1981)详细描述了 TSB 的工作原理。后来我拿到了 TSB 的源码(汇编写的),自己把它给彻底摸透了。那时期冒出来的其他 BASIC 实现功能要更丰富……

    …statements to debug the code. TSB BASIC didn't have compile/link steps, it tokenized the code as you entered the lines, and the interpreter amounted to a big switch statements on the tokens. P. J Brown's book Writing Interactive Compilers and Interpreters (1981) describes how TSB works. Eventually I got the source code to TSB (written in assembler) and figured it out for myself. Other BASIC implementations that popped up around the same time had richer…

正在加载完整评论……

键盘快捷键

/
聚焦搜索框
j / k
下一本 / 上一本
Enter
打开选中的书
Esc
关闭 / 返回
g h
回到首页
g b
值得读精选
g t
历史总榜
g r
上升最快
g l
我的书架
?
显示本帮助