-
Book Overview & Buying
-
Table Of Contents
Building Programming Language Interpreters
By :
So far, I have been working on simplified examples and on a minimal version of the HTTP protocol. Now, it is time to test the interpreter in a real use case while still targeting a protocol that falls within the limitations of the programming language.
A good example for this is SMTP, the protocol that underpins email infrastructure on the internet, because it has a wider variety of states than plain HTTP. In SMTP, there are specific states that are preserved across various messages, and the interpreter needs to be able to convey those states.
I won’t go into a full explanation of the protocol, but by the end of this section, you should have a firm grasp on how it works. Let me start with a diagram that describes the different states in the protocol:
Figure 17.1: State machine diagram for SMTP (This image is for visualization purpose only. Check the graphic bundle for a high-resolution version.)
I will do...
Change the font size
Change margin width
Change background colour