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<java.lang.String> imp,
java.util.Vector<Code> codeParts,
java.util.Vector<SymbolList> syms,
java.util.Vector<Precedence> precedence,
java.util.Vector<java.lang.String> startList,
java.util.Vector<Command> 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<java.lang.String> imp,
java.util.Vector<Code> codeParts,
java.util.Vector<SymbolList> syms,
java.util.Vector<Precedence> precedence,
java.util.Vector<java.lang.String> startList,
java.util.Vector<Command> 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