Chapter 7. Parsing Arithmetic

This chapter explains how to build an arithmetic parser. Arithmetic parsers usually appear as part of larger parsers for richer languages. In particular, query languages, logic languages, and imperative languages frequently contain arithmetic features. By learning to write an arithmetic parser, you can add arithmetic to your own languages. This chapter explains the principles behind proper and conventional parsing of arithmetic.

Get Building Parsers with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.