By using JavaScript, chapters
[1]–
[3] introduce the reader
to the syntactic style of most mainstream languages today.
However, that same syntactic style
gave rise to significant changes in chapter
[4], because
the direct representation of programs as data structures could
no longer be taken for granted. This provided us with an
opportunity to introduce the reader to the notion of program parsing
in section
[4.1],
an important component of programming-language processors.
In section
[4.4], the rigid syntactic structure of JavaScript
complicated the implementation of the presented logic programming system
and exposed the limitations of JavaScript as a tool for programming
language design.
JavaScriptを使用することで、第
[1]章から第
[3]章は今日の主流言語のほとんどに共通する構文スタイルを読者に紹介します。しかし、その同じ構文スタイルが第
[4]章に大きな変更をもたらしました。プログラムをデータ構造として直接表現することが、もはや当然のこととは言えなくなったからです。これにより、プログラミング言語処理系の重要な構成要素であるプログラムの構文解析という概念を、
[4.1]節で読者に紹介する機会が生まれました。
[4.4]節では、JavaScriptの厳格な構文構造が、提示された論理プログラミングシステムの実装を複雑にし、プログラミング言語設計のツールとしてのJavaScriptの限界を露呈させました。