• Complain

John Levine - Flex & Bison: Text Processing Tools

Here you can read online John Levine - Flex & Bison: Text Processing Tools full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2009, publisher: OReilly Media, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Flex & Bison: Text Processing Tools
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2009
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Flex & Bison: Text Processing Tools: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Flex & Bison: Text Processing Tools" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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 OReilly 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. Youll find revised tutorials for novices and references for advanced users, as well as an explanation of each utilitys basic usage and simple, standalone applications you can create with them. With flex & bison, youll discover the wide range of uses these flexible tools offer.

  • Address syntax crunching that regular expressions tools cant handle
  • Build compilers and interpreters, and handle a wide range of text processing functions
  • Interpret code, configuration files, or any other structured format
  • Learn key programming techniques, including abstract syntax trees and symbol tables
  • Implement a full SQL grammar-with complete sample code
  • Use new features such as pure (reentrant) lexers and parsers, powerful GLR parsers, and interfaces to C++

John Levine: author's other books


Who wrote Flex & Bison: Text Processing Tools? Find out the surname, the name of the author of the book and a list of all author's works by series.

Flex & Bison: Text Processing Tools — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Flex & Bison: Text Processing Tools" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
flex & bison

Table of Contents

flex & bison

John Levine

Editor

Simon St. Laurent

Copyright 2009 John Levine

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (.

Nutshell Handbook, the Nutshell Handbook logo, and the OReilly logo are registered trademarks of OReilly Media, Inc. The image of Nicobar pigeons and related trade dress are trademarks of OReilly Media, Inc.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and OReilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps.

While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

OReilly Media Preface Flex and bison are tools designed for writers of - photo 1

O'Reilly Media

Preface

Flex and bison are tools designed for writers of compilers and interpreters, although they are also useful for many applications that will interest noncompiler writers. Any application that looks for patterns in its input or has an input or command language is a good candidate for flex and bison. Furthermore, they allow for rapid application prototyping, easy modification, and simple maintenance of programs. To stimulate your imagination, here are a few things people have used flex and bison, or their predecessors lex and yacc, to develop:

  • The desktop calculator bc
  • The tools eqn and pic , typesetting preprocessors for mathematical equations and complex pictures
  • Many other domain-specific languages targeted for a particular application
  • PCC , the Portable C Compiler used with many Unix systems
  • Flex itself
  • A SQL database language translator
Scope of This Book

, gives an overview of how and why flex and bison are used to create compilers and interpreters and demonstrates some simple applications including a calculator built in flex and bison. It also introduces basic terms we use throughout the book.

, describes how to use flex. It develops flex applications that count words in files, handle multiple and nested input files, and compute statistics on C programs.

, gives a full example using flex and bison to develop a fully functional desktop calculator with variables, procedures, loops, and conditional expressions. It shows the use of abstract syntax trees (ASTs), powerful and easy-to-use data structures for representing parsed input.

, develops a parser for the MySQL dialect of the SQL relational database language. The parser checks the syntax of SQL statements and translates them into an internal form suitable for an interpreter. It shows the use of Reverse Polish Notation (RPN), another powerful form used to represent and interpret parsed input.

, provide detailed descriptions of the features and options available to flex and bison programmers. These chapters and the two that follow provide technical information for the now-experienced flex and bison programmer to use while developing flex and bison applications.

, explains bison ambiguities and conflicts, which are grammar problems that keep bison from creating a parser from a grammar. It then develops methods that can be used to locate and correct such problems.

, discusses techniques that compiler or interpreter designers can use to locate, recognize, and report errors in the compiler input.

, covers reentrant scanners and parsers, Generalized Left to Right (GLR) parsers that can handle grammars that regular bison parsers cant, and interfaces to C++.

The appendix provides the complete grammar and a cross-reference for the SQL parser discussed in .

The glossary lists technical terms from language and compiler theory.

We presume you are familiar with C, because most examples are in C, flex, or bison, with a few in C++ and the remainder in SQL or the special-purpose languages developed within the text.

Conventions Used in This Book

The following conventions are used in this book:

Italic
Used for new terms and concepts when they are introduced.
Constant Width
Used for program listings, as well as within paragraphs to refer to program elements such as statements, classes, macros, states, rules, all code terms, and files and directories.
Constant Bold
Shows commands or other text that should be typed literally by the user.
Constant width italic
Shows text that should be replaced with user-supplied values or by values determined by context.
$
is the shell prompt.
[]
surround optional elements in a description of program syntax. (Dont type the brackets themselves.)

Tip

This icon signifies a tip, suggestion, or general note.



Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Flex & Bison: Text Processing Tools»

Look at similar books to Flex & Bison: Text Processing Tools. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Flex & Bison: Text Processing Tools»

Discussion, reviews of the book Flex & Bison: Text Processing Tools and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.