ppg.spec
Class PPGSpec
java.lang.Object
ppg.spec.Spec
ppg.spec.PPGSpec
- All Implemented Interfaces:
- Unparse
public class PPGSpec
- extends Spec
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;
} |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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;
}
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