Building Parsers with Java

sjm.examples.arithmetic
Class NumAssembler

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

public class NumAssembler
extends Assembler

Replace the top token in the stack with the token's Double value.


Constructor Summary
NumAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Replace the top token in the stack with the token's Double value.
 
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

NumAssembler

public NumAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Replace the top token in the stack with the token's Double value.
Overrides:
workOn in class Assembler
Parameters:
Assembly - the assembly whose stack to use

by Steve Metsker