Building Parsers with Java

sjm.examples.regular
Class OrAssembler

java.lang.Object
  |
  +--sjm.parse.Assembler
        |
        +--sjm.examples.regular.OrAssembler

public class OrAssembler
extends Assembler

Pop two parsers from the stack and push a new Alternation of them.


Constructor Summary
OrAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Pop two parsers from the stack and push a new Alternation of them.
 
Methods inherited from class sjm.parse.Assembler
elementsAbove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrAssembler

public OrAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Pop two parsers from the stack and push a new Alternation of them.
Overrides:
workOn in class Assembler
Parameters:
Assembly - the assembly whose stack to use

by Steve Metsker