Compiler Design: Syntactic and Semantic Analysis
暫譯: 編譯器設計:語法與語義分析

Reinhard Wilhelm

買這商品的人也買了...

相關主題

商品描述

While compilers for high-level programming languages are large complex software systems, they have particular characteristics that differentiate them from other software systems. Their functionality is almost completely well-defined – ideally there exist complete precise descriptions of the source and target languages. Additional descriptions of the interfaces to the operating system, programming system and programming environment, and to other compilers and libraries are often available.

 

This book deals with the analysis phase of translators for programming languages. It describes lexical, syntactic and semantic analysis, specification mechanisms for these tasks from the theory of formal languages, and methods for automatic generation based on the theory of automata. The authors present a conceptual translation structure, i.e., a division into a set of modules, which transform an input program into a sequence of steps in a machine program, and they then describe the interfaces between the modules. Finally, the structures of real translators are outlined. The book contains the necessary theory and advice for implementation.

 

This book is intended for students of computer science. The book is supported throughout with examples, exercises and program fragments.

 

 

 

 

 

 

 

商品描述(中文翻譯)

雖然高階程式語言的編譯器是大型且複雜的軟體系統,但它們具有一些特徵,使其與其他軟體系統區別開來。它們的功能幾乎完全明確——理想情況下,源語言和目標語言應該有完整且精確的描述。關於作業系統、程式系統和程式環境,以及其他編譯器和函式庫的介面描述通常也可用。

本書探討程式語言翻譯器的分析階段。它描述了詞法分析、語法分析和語義分析,這些任務的規範機制來自形式語言理論,以及基於自動機理論的自動生成方法。作者提出了一個概念性翻譯結構,即將輸入程式轉換為機器程式的一系列步驟的模組集合,並描述了模組之間的介面。最後,概述了實際翻譯器的結構。本書包含了實現所需的理論和建議。

本書適合計算機科學的學生閱讀。全書配有範例、練習和程式片段以作支援。

最後瀏覽商品 (20)