March 2001
Intermediate to advanced
400 pages
8h 35m
English
One way to get a grip on the design of your parser is to think about how you will build the result you want from the text you recognize. So one way to get started with the design of a new parser is to start designing your assemblers.
An assembly provides both a stack and a target object for the parser's assemblers to work on. The target object is like a sculpture, taking form as the parser recognizes the input text. Figure 3.1 shows the Parser, Assembler, and Assembly classes, which collaborate to sculpt text into a result.
Read now
Unlock full access