O'Reilly logo

Building Parsers with Java™ by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.1. Engines versus Interpreters

In some contexts, especially logic programming, the word interpreter describes what this book calls an engine. In this same context the word interpreter may also refer to the combination of the engine and the parser that accepts a programmer's commands. This book uses engine rather than interpreter to refer specifically to the object that can sift through data looking for matches to a query.

Another reason this book avoids the word interpreter is that the interpreter pattern, as [Gamma et al.] document it, associates interpreters with languages. The engine that this book develops is language-independent, and it does not follow the interpreter pattern.

For these reasons, this book describes the object that powers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required