10.4 Collection Parsers

Building Parsers with Java
By Steven  John  Metsker

Table of Contents
Chapter  10.   Matching Mechanics


The Sequence and Alternation classes are subclasses of CollectionParser , as Figure 10.3 shows. These classes have a common way of adding and storing their subparsers. They differ primarily in how they match a set of assemblies.

Figure 10.3. The CollectionParser class. CollectionParser is the abstract superclass of the two fundamental types of collection parsers: Alternation and Sequence .


The main behavior that CollectionParser provides to its subclasses is the ability to add a parser to a collection.


Building Parsers with Java
Building Parsers With Javaв„ў
ISBN: 0201719622
EAN: 2147483647
Year: 2000
Pages: 169

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net