Table of Contents; Preface; Scope of This Book; Conventions Used in This Book; Getting Flex and Bison; This Book's Example Files; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1. Introducing Flex and Bison; Lexical Analysis and Parsing; Regular Expressions and Scanning; Our First Flex Program; Programs in Plain Flex; Putting Flex and Bison Together; The Scanner as Coroutine; Tokens and Values; Grammars and Parsing; BNF Grammars; Bison's Rule Input Language; Compiling Flex and Bison Programs Together; Ambiguous Grammars: Not Quite
Summary
If you need to parse or process text data in Linux or Unix, this useful book explains how to use flex and bison to solve your problems quickly. flex & bison is the long-awaited sequel to the classic O'Reilly book, lex & yacc. In the nearly two decades since the original book was published, the flex and bison utilities have proven to be more reliable and more powerful than the original Unix tools. flex & bison covers the same core functionality vital to Linux and Unix program development, along with several important new topics. You'll find revised tutorials for