Building Parsers with Java

sjm.examples.pretty
Class PrettyTerminalAssembler

java.lang.Object
  |
  +--sjm.parse.Assembler
        |
        +--sjm.examples.pretty.PrettyTerminalAssembler

public class PrettyTerminalAssembler
extends Assembler

Replace a Token object on the stack with a TerminalNode that holds the token's value.


Constructor Summary
PrettyTerminalAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Replace a Token object on the stack with a TerminalNode that holds the token's 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

PrettyTerminalAssembler

public PrettyTerminalAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Replace a Token object on the stack with a TerminalNode that holds the token's value.
Overrides:
workOn in class Assembler
Parameters:
Assembly - the assembly to work on

by Steve Metsker