Building Parsers with Java

sjm.examples.arithmetic
Class PlusAssembler

java.lang.Object
  |
  +--sjm.parse.Assembler
        |
        +--sjm.examples.arithmetic.PlusAssembler

public class PlusAssembler
extends Assembler

Pop two numbers from the stack and push their sum.


Constructor Summary
PlusAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Pop two numbers from the stack and push their sum.
 
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

PlusAssembler

public PlusAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Pop two numbers from the stack and push their sum.
Overrides:
workOn in class Assembler
Parameters:
Assembly - the assembly whose stack to use

by Steve Metsker