Writing an Interpreter in Object Pascal: Part 1: Lexical and Basic Syntax Analysis
暫譯: 用 Object Pascal 寫一個解釋器:第一部分:詞法與基本語法分析
Sauro, Herbert M.
- 出版商: Ambrosius Publishing
- 出版日期: 2019-01-06
- 售價: $840
- 貴賓價: 9.5 折 $798
- 語言: 英文
- 頁數: 170
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1732548609
- ISBN-13: 9781732548602
-
相關分類:
Object-oriented
海外代購書籍(需單獨結帳)
相關主題
商品描述
This is part 1 of a series that will show you how to write an interactive interpreter in Object Pascal. Part 1 of the series will cover introductory material including a description of the language we'll create, a full lexical analyzer for the language, how to use DUnitX for unit testing, and an introduction to the essential concepts in syntax analysis, recursive descent, grammar, and EBNF. Along the way, we'll create a REPL, give a detailed discussion of how to parse expressions and build a simple interactive calculator to illustrate the theory. The book provides fully working code and explains in plain English how the code works and why certain decisions were made, including alternative designs. The book makes liberal use of code throughout the book chapters. Everything is done without the help of third-party tools. All you need is a standard installation of Free Pascal or Embarcaderos's excellent Delphi (including the free community edition). The text is geared to hobbyists and midlevel developers who need an easy introduction to lexical analysis and parsing. It's also for students starting out in compiler and interpreter design and need something more digestible before getting immersed in compiler theory.
商品描述(中文翻譯)
這是系列的第一部分,將向您展示如何在 Object Pascal 中編寫互動式解釋器。系列的第一部分將涵蓋入門材料,包括我們將創建的語言的描述、該語言的完整詞法分析器、如何使用 DUnitX 進行單元測試,以及語法分析、遞歸下降、文法和 EBNF 的基本概念介紹。在此過程中,我們將創建一個 REPL,詳細討論如何解析表達式並構建一個簡單的互動計算器以說明理論。本書提供了完整可運行的代碼,並用簡單的英語解釋代碼的運作方式以及為什麼做出某些決策,包括替代設計。本書在各章中廣泛使用代碼。所有內容均不依賴第三方工具。您所需的僅是標準安裝的 Free Pascal 或 Embarcadero 的優秀 Delphi(包括免費的社區版)。本書的內容針對愛好者和中級開發人員,提供了詞法分析和解析的簡易入門。它也適合剛開始學習編譯器和解釋器設計的學生,幫助他們在深入編譯器理論之前,獲得更易於理解的內容。