![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编译原理
文章平均质量分 92
CarolusRex
这个作者很懒,什么都没留下…
展开
-
编译原理 第八章 Code Generation
本书以 编译原理及实践 为textbookChapter Eight. Code Generationa compiler typically breaks up this phase into several steps, involving various intermediate data structures, often including some form of abstract code called intermediate code.issues:Two popular for原创 2020-06-16 03:02:00 · 431 阅读 · 0 评论 -
编译原理 第七章 Runtime Environments
本书以 编译原理及实践 为textbookChapter Seven. Runtime EnvironmentsThree kinds of runtime environments:Fully static environment; FORTRAN77stack-based environment; C C++fully dynamic environment; LISPMem...原创 2020-05-05 00:04:44 · 776 阅读 · 0 评论 -
编译原理 第六章 Semantic Analysis
本书以 编译原理及实践 为textbookChapter Six. Semantic Analysisattributes and attribute grammers原创 2020-05-02 22:31:15 · 803 阅读 · 0 评论 -
编译原理 第四章 Top-Down Parsing
本书以 编译原理及实践 为textbookChapter Four. Top-Down ParsingRecursive-descent parsing(requires EBNF)LL(k) parsingwhen LL(1) parsing,the process is in the stack,so the parsing is invertedaction:generate(re...原创 2020-04-22 02:06:10 · 447 阅读 · 0 评论 -
编译原理 第三章 Context-Free Grammers and Parsing
本书以编译原理及实践为textbookChapter Three. Context-Free Grammers and Parsingcontext-free grammerpasre工作时需要一个character就调用scanner读入一个,而不是scanner结束后运行error in the scanner:generator an error token and consume ...原创 2020-04-22 02:04:57 · 207 阅读 · 0 评论 -
编译原理 第五章 Bottom-Up Parsing
本书以 编译原理及实践 为textbookChapter Five. Bottom-Up ParsingLR grammars (from Left to Right,rightmost derivation)shift-reduce parsersaction:Shift : Shift a terminal from the front of the input to the to...原创 2020-04-22 02:04:01 · 711 阅读 · 0 评论 -
编译原理 第一章 Introduction
Chapter Onefour level of grammers:type 0(0型文法),type 1(上下文有关文法),type 2(上下文无关文法),type 3(正则文法)InterpretersAssemblersLinkersLoadersPreprocessorsEditorsDebuggersProfilersProject managersthe tran...原创 2020-04-22 02:03:19 · 165 阅读 · 0 评论 -
编译原理 第二章 Scanning(lexical analysis)
本书以编译原理及实践为textbookChapter Two. Scanning(lexical analysis)regular expressionFinite AutomataNFADFAminiDFAdigraphgrankdir=LR//方向左右dot语言−>简介,语法,示例dot语言[shape=box,fontcolor=red]简介[color=red]语法[c...原创 2020-04-22 01:57:30 · 304 阅读 · 0 评论