Building Parsers with Java

sjm.examples.arithmetic
Class DivideAssembler

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

public class DivideAssembler
extends Assembler

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


Constructor Summary
DivideAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Pop two numbers from the stack and push the result of dividing the top number into 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

DivideAssembler

public DivideAssembler()
Method Detail

workOn

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

by Steve Metsker