Appendix B: A Simple Parser

  • Matt Zandstra


The Interpreter pattern discussed in Chapter 11 does not cover parsing. An interpreter without a parser is pretty incomplete, unless you persuade your users to write PHP code to invoke the interpreter! Third-party parsers are available that could be deployed to work with the Interpreter pattern, and that would probably be the best choice in a real-world project.


Code Listing Context Class Public Function Context Object Method Method 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Matt Zandstra 2016

Authors and Affiliations

  • Matt Zandstra
    • 1
  1. 1.LiverpoolUK

Personalised recommendations