文件名称:A Compact Guide to Lex & Yacc
文件大小:127KB
文件格式:PDF
更新时间:2014-05-28 01:23:37
Lex & Yacc Tom Niemann
This document explains how to construct a compiler using lex and yacc. Lex and yacc are tools used to generate lexical analyzers and parsers. The introduction 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 can construct a sophisticated calculator.The remaining sections discuss issues that commonly arise in compiler writing.