Chinaunix首页 | 论坛 | 博客
  • 博客访问: 157561
  • 博文数量: 43
  • 博客积分: 2650
  • 博客等级: 少校
  • 技术积分: 465
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-31 10:00
文章分类

全部博文(43)

文章存档

2012年(1)

2011年(11)

2010年(17)

2009年(14)

我的朋友

分类: C/C++

2009-04-06 19:07:57

编译原理学习笔记
 2009/04/06 ~ 2009/xx/xx

教材: Modern Compiler Implementation in C (英文版) by Andrew W. Appel

1. 用语
  
  Lexical Analysis:  词义分析
  Parse: 语法分析
  Semantic Analysis: 语义分析
  Context-free Grammars(CFG): 上下文无关文法
  Intermediate Representation Trees(IR trees):
  Abstract Syntax:
 
2. Introdution
   Phases of a compiler
  
3. Lexical Analysis
  
  The front end of the compiler perform analysis; the back end does synthesis.
   分析包括:
     Lexical Analysis: 词义分析,breaking the input into individual words or "tokens";
     Synteax Analysis: 语法分析,parsing the phrase structure of the program;
     Semantic Analysis: 语义分析,calculating the program‘s meaning.


  


阅读(590) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~