Building Parsers with Java

sjm.examples.arithmetic
Class ExpAssembler

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

public class ExpAssembler
extends Assembler

Pop two numbers from the stack and push the result of exponentiating the lower number to the upper one.


Constructor Summary
ExpAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Pop two numbers from the stack and push the result of exponentiation the lower number to the upper one.
 
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

ExpAssembler

public ExpAssembler()
Method Detail

workOn

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

by Steve Metsker