7.5. Summary

You may never need a parser that recognizes only arithmetic, but you will likely create parsers that include arithmetic features. Each of the larger languages that lie ahead in this book uses some form of arithmetic. There is potential for reusing the parser objects that the ArithmeticParser class offers, but larger languages usually need assemblers that are unique to the purpose the language serves.

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.