[资源]A Compact Guide to Lex & Yacc
来源:互联网 发布:参乎,吾道一以贯之 编辑:程序博客网 时间:2024/05/17 21:57
snaill:根本不知道Lex和Yacc咋回事,看来编译白学了,赶快补课
原网站:http://epaperpress.com/lexandyacc/
A Compact Guide to Lex & Yacc
This document explains how to construct a compiler using lex and yacc. Lex and yacc are tools used to generate lexical analyzers and parsers. I assume you can program in C, and understand data structures such as linked-lists and trees.
The Overview describes the basic building blocks of a compiler and explains the interaction between lex and yacc. The next two sections describe lex and yacc in more detail. With this background, we construct a sophisticated calculator. Conventional arithmetic operations and control statements, such as if-else and while, are implemented. With minor changes, we convert the calculator into a compiler for a stack-based machine. The remaining sections discuss issues that commonly arise in compiler writing. Right-click on the following links for additional downloads:
- PDF format (100k)
- source code for calculator (5k)
Permission to reproduce portions of this document is given provided the web site listed below is referenced, and no additional restrictions apply. Source code, when part of a software project, may be used freely without reference to the author.
Thomas Niemann
Portland, Oregon
epaperpress.com
- [资源]A Compact Guide to Lex & Yacc
- Lex and Yacc Primer/HOW TO
- Yacc Lex
- lex & yacc
- lex&yacc
- Lex Yacc
- lex &yacc
- yacc & lex
- lex&yacc
- YACC & LEX
- lex yacc
- yacc&lex
- lex && yacc
- Lex & Yacc
- LEX, YACC
- lex yacc
- LEX YACC
- lex yacc
- 公布《.NET软件开发技术基础》全书目录
- [转]防止全局钩子的侵入
- 第四章 编写ASP.NET页面
- [转贴]Yacc 与 Lex 快速入门
- IBM好一个大的资源库
- [资源]A Compact Guide to Lex & Yacc
- 第二章 统一建模语言UML简介
- Asp.Net常用函数
- 评论一篇搞笑文章
- emacs...
- SED,AWK学习笔记Part 2-----sed编辑器
- SQL Server 2000 全局变量列表
- 才发现CSDN把pingback自动化了
- 发现QQ一个体贴的地方