pj
Interface Leaf

All Superinterfaces:
Dump.Helper
All Known Implementing Classes:
PJ.ErrorInfo, PJ.IdInfo, PJ.Info, PJ.Lit1Info, PJ.LitInfo, PJ.MacInfo, PJ.Many, PJ.Opt, PJ.Repeat, PJ.Sep, PJ.Some, PJ.SymInfo

public interface Leaf
extends Dump.Helper

what a leaf in a pj tree can do.


Method Summary
 boolean collect()
          true if this leaf is to be collected.
 void lex(PrintWriter out)
          create JLex rule.
 String name()
          name in jay or JLex.
 String type()
          type in jay actions.
 
Methods inherited from interface pj.Dump.Helper
dump
 

Method Detail

name

String name()
name in jay or JLex.


type

String type()
type in jay actions. This is only called if collect() is true.


lex

void lex(PrintWriter out)
create JLex rule.


collect

boolean collect()
true if this leaf is to be collected.