woodys-uk
Price: £25.73
In stock

the_book_de...
Price: £32.80
In stock

17 used & new from £11.40

Have one to sell? Sell yours here
 
 
Building Parsers with Java
 
See larger image
 

Building Parsers with Java (Paperback)

by Steven John Metsker (Author)
3.0 out of 5 stars  See all reviews (2 customer reviews)

Available from these sellers.


8 new from £22.44 9 used from £11.40

Customers Viewing This Page May Be Interested in These Sponsored Links

  (What is this?)
   Parsing opens new browser window
TextConverter.simx.com/txt  -  Extract Data From Complex Text Files And Save To Database. 
   Parse Your Java Code opens new browser window
www.HeadwaySoftware.com  -  Instant Architecture Diagrams/Rules Publish to Eclipse. Download Now 
   Java static code analysis opens new browser window
www.xdepend.com  -  A Java productivity tool 4 windows Unlimited free trial, TRY IT NOW! 
  
 

Product details

  • Paperback: 371 pages
  • Publisher: Addison Wesley; Pap/Cdr edition (20 April 2001)
  • Language English
  • ISBN-10: 0201719622
  • ISBN-13: 978-0201719628
  • Product Dimensions: 23.1 x 18.8 x 2.8 cm
  • Average Customer Review: 3.0 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon.co.uk Sales Rank: 996,498 in Books (See Bestsellers in Books)

    Popular in this category:

    #64 in  Books > Computing & Internet > Programming > Compilers
  • See Complete Table of Contents

Product Description

Product Description

No programming language can solve every problem, but Java can be extended to solve a far wider range of problems through the use of parsers -- "mini-languages" that bridge the gap between humans and computers, and offer targeted solutions for specific problem domains. In Building Parsers with Java™, Steven John Metsker presents the first complete, start-to-finish guide to building parsers with Java. Metsker first explains what a parser is, introduces the building blocks of applied parsers, shows how to compose new parsers from existing ones; and walks step-by-step through designing, coding, and testing a working parser. Next, he presents in-depth coverage of creating Java-based parsers for a wide range of problem domains. You'll learn how to create parsers that can read elements of a data language; how to transform a grammar, ensuring the correct behavior of operators in a language; how to build arithmetic and regular expression parsers, and more. Metsker shows how to extend existing parser toolkits, and introduces a logic engine that can be used in a wide range of parsers, including both logic and query languages.



From the Back Cover

Parser building is a powerful programming technique that opens a world of opportunity for designing how users interact with applications. By creating mini-languages, you can precisely address the requirements of your application development domain. Writing your own parsers empowers you to access a database more effectively than SQL to efficiently control the movement of an order through its workflow, to command the actions of a robot, and to control access privileges to transactions in a system. The repertoire of today's professional programmer should include the know-how to create custom languages.

Building Parsers with Java™ shows how to create parsers that recognize custom programming languages. This book and its accompanying CD provide an in-depth explanation and clearly written tutorial on writing parsers, following the Interpreter Design Pattern. An easy-to-follow demonstration on how to apply parsers to vital development tasks is included, using more than a hundred short examples, numerous UML diagrams, and a pure Java parser toolkit to illustrate key points.

You will learn
  • How to design, code, and test a working parser
  • How to create a parser to read a data language, and how to create new computer languages with XML
  • How to translate the design of a language into code
  • How to accept an arithmetic formula and compute its result
  • How to accept and apply matching expressions like th* one
  • How to use tokenizers to define a parser in terms of logical nuggets instead of individual characters
  • How to build parsers for a custom logic language like Prolog
  • How to build parsers for a custom query language that goes beyond SQL
  • How to construct an imperative language that translates text into commands that direct a sequence of actions


0201719622B04062001

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
 
java
tossed
tools
parsers
computer science
compilers

Your tags: Add your first tag
 

 

Customer Reviews

2 Reviews
5 star:    (0)
4 star:
 (1)
3 star:    (0)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
3.0 out of 5 stars (2 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
5 of 6 people found the following review helpful:
4.0 out of 5 stars Java Parsers for interpreted languages, 3 Sep 2001
I liked the book. Its particularly nice to see some implementation of a simple prolog like language and that area was good. (Particularly, if like me, you know nothing about those topics).

I did think that the Tokenization section lacked sufficient depth -- no mention of regular expression - NFA - DFA; or state tables for parsing.

The OO design, I'd prehaps have done differently. e.g.) the whitespace character set is defined once in WhitespaceState and again in the Tokenizer. (They may be modified, but it should be one object that encapsulates this information -- I'd have had State classes registering their set of accept sets with the Tokenizer).

Overall, very readable and well worth buying as it will give you lots of ideas, even if you choose to expand on what is written in this book.

Much more usefull than some 'faux complex' compiler book - and many of them seem to exist.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
2.0 out of 5 stars Should be called Building Parsers With Author's Own Toolkit, 10 May 2005
By Mr. Dj Livesey "Doug" (UK) - See all my reviews
(REAL NAME)   
I was hoping for a book that would explain how to build, from the ground up, my own languages, and this IS NOT IT!
Instead, you get a tour of a toolkit the author has developed, which is no doubt very impressive, but doesn't give me the confidence or grounding to develop my own (especially in other languages).
He doesn't tell you how that essential toolkit itself came about, so this is pretty much useless to a developer interested in the basic principles, like me.
2nd book bought by, and 2nd bad opinion of, this Author.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

   


Look for similar items by category


Look for similar items by subject


Feedback


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.