ppg.spec
Class PPGSpec

java.lang.Object
  extended by ppg.spec.Spec
      extended by ppg.spec.PPGSpec
All Implemented Interfaces:
Unparse

public class PPGSpec
extends Spec


Field Summary
 
Fields inherited from class ppg.spec.Spec
actionCode, child, imports, initCode, packageName, parserCode, prec, scanCode, symbols
 
Constructor Summary
PPGSpec(java.lang.String incFile, java.lang.String pkg, java.util.Vector imp, java.util.Vector codeParts, java.util.Vector syms, java.util.Vector precedence, java.util.Vector startList, java.util.Vector cmds)
          PPG spec public PPGSpec (String incFile, String pkg, Vector imp, Vector codeParts, Vector syms, Vector precedence, String startSym, Vector cmds) { super(); include = incFile; packageName = pkg; imports = imp; code = codeParts; symbols = syms; prec = precedence; start = startSym; startSyms = null; commands = cmds; parent = null; }
 
Method Summary
 CUPSpec coalesce()
          Combine the chain of inheritance into one CUP spec
 boolean isMultiStartSymbol()
           
 void parseChain(java.lang.String basePath)
          Parse the chain of inheritance via include files
 void patchMultiStartSymbols(CUPSpec cupSpec)
           
 void unparse(CodeWriter cw)
          Write out contents to a CodeWriter
 
Methods inherited from class ppg.spec.Spec
addImports, replaceCode, setChild, setPkgName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPGSpec

public PPGSpec(java.lang.String incFile,
               java.lang.String pkg,
               java.util.Vector imp,
               java.util.Vector codeParts,
               java.util.Vector syms,
               java.util.Vector precedence,
               java.util.Vector startList,
               java.util.Vector cmds)
PPG spec public PPGSpec (String incFile, String pkg, Vector imp, Vector codeParts, Vector syms, Vector precedence, String startSym, Vector cmds) { super(); include = incFile; packageName = pkg; imports = imp; code = codeParts; symbols = syms; prec = precedence; start = startSym; startSyms = null; commands = cmds; parent = null; }

Method Detail

isMultiStartSymbol

public boolean isMultiStartSymbol()

patchMultiStartSymbols

public void patchMultiStartSymbols(CUPSpec cupSpec)

parseChain

public void parseChain(java.lang.String basePath)
Parse the chain of inheritance via include files

Overrides:
parseChain in class Spec

coalesce

public CUPSpec coalesce()
                 throws PPGError
Description copied from class: Spec
Combine the chain of inheritance into one CUP spec

Specified by:
coalesce in class Spec
Throws:
PPGError

unparse

public void unparse(CodeWriter cw)
Write out contents to a CodeWriter