Building Parsers with Java

sjm.examples.arithmetic
Class MinusAssembler

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

public class MinusAssembler
extends Assembler

Pop two numbers from the stack and push the result of subtracting the top number from the one below it.


Constructor Summary
MinusAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Pop two numbers from the stack and push the result of subtracting the top number from the one below it.
 
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

MinusAssembler

public MinusAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Pop two numbers from the stack and push the result of subtracting the top number from the one below it.
Overrides:
workOn in class Assembler
Parameters:
Assembly - the assembly whose stack to use

by Steve Metsker