public class ComputeCGNomenclature extends DepthFirstAdapter
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
altElemTypes |
private java.util.Map |
altTransformElemTypes |
private int |
counter |
private java.lang.String |
currentAlt |
private java.lang.String |
currentProd |
private ResolveIds |
ids |
private ResolveProdTransformIds |
prodTransformIds |
private java.util.Map |
termNumbers |
Constructor and Description |
---|
ComputeCGNomenclature(ResolveIds ids,
ResolveProdTransformIds prodTransformIds) |
Modifier and Type | Method and Description |
---|---|
void |
caseAAst(AAst node) |
void |
caseANullTerm(ANullTerm node) |
void |
caseAProd(AProd production) |
void |
caseASimpleListTerm(ASimpleListTerm node) |
void |
caseASimpleTerm(ASimpleTerm node) |
java.util.Map |
getAltTransformElemTypes() |
java.util.Map |
getTermNumbers() |
void |
inAAlt(AAlt nodeAlt) |
void |
inAElem(AElem node) |
void |
inANewListTerm(ANewListTerm node) |
void |
inANewTerm(ANewTerm node) |
void |
outAListTerm(AListTerm node) |
void |
setAltElemTypes(java.util.Map aMap) |
caseAAlt, caseAAltTransform, caseAAstAlt, caseAAstProd, caseACharBasic, caseACharChar, caseAConcat, caseADecChar, caseAElem, caseAGrammar, caseAHelperDef, caseAHelpers, caseAHexChar, caseAIdBasic, caseAIgnTokens, caseAIntervalSet, caseAListTerm, caseAMinusBinOp, caseANewListTerm, caseANewTerm, caseAOperationSet, caseAPlusBinOp, caseAPlusUnOp, caseAProdName, caseAProductions, caseAProductionSpecifier, caseAQMarkUnOp, caseARegExp, caseARegExpBasic, caseASetBasic, caseAStarUnOp, caseAStateList, caseAStateListTail, caseAStates, caseAStringBasic, caseATokenDef, caseATokens, caseATokenSpecifier, caseATransition, caseAUnExp, caseStart, defaultIn, defaultOut, inAAltTransform, inAAst, inAAstAlt, inAAstProd, inACharBasic, inACharChar, inAConcat, inADecChar, inAGrammar, inAHelperDef, inAHelpers, inAHexChar, inAIdBasic, inAIgnTokens, inAIntervalSet, inAListTerm, inAMinusBinOp, inANullTerm, inAOperationSet, inAPlusBinOp, inAPlusUnOp, inAProd, inAProdName, inAProductions, inAProductionSpecifier, inAQMarkUnOp, inARegExp, inARegExpBasic, inASetBasic, inASimpleListTerm, inASimpleTerm, inAStarUnOp, inAStateList, inAStateListTail, inAStates, inAStringBasic, inATokenDef, inATokens, inATokenSpecifier, inATransition, inAUnExp, inStart, outAAlt, outAAltTransform, outAAst, outAAstAlt, outAAstProd, outACharBasic, outACharChar, outAConcat, outADecChar, outAElem, outAGrammar, outAHelperDef, outAHelpers, outAHexChar, outAIdBasic, outAIgnTokens, outAIntervalSet, outAMinusBinOp, outANewListTerm, outANewTerm, outANullTerm, outAOperationSet, outAPlusBinOp, outAPlusUnOp, outAProd, outAProdName, outAProductions, outAProductionSpecifier, outAQMarkUnOp, outARegExp, outARegExpBasic, outASetBasic, outASimpleListTerm, outASimpleTerm, outAStarUnOp, outAStateList, outAStateListTail, outAStates, outAStringBasic, outATokenDef, outATokens, outATokenSpecifier, outATransition, outAUnExp, outStart
caseEOF, caseTAbstract, caseTArrow, caseTBar, caseTBlank, caseTChar, caseTColon, caseTComma, caseTComment, caseTDDot, caseTDecChar, caseTDot, caseTEqual, caseTHelpers, caseTHexChar, caseTId, caseTIgnored, caseTLBkt, caseTLBrace, caseTLPar, caseTMinus, caseTNew, caseTNull, caseTPackage, caseTPkgId, caseTPlus, caseTProductions, caseTProductionSpecifier, caseTQMark, caseTRBkt, caseTRBrace, caseTRPar, caseTSemicolon, caseTSlash, caseTStar, caseTStates, caseTString, caseTSyntax, caseTTokens, caseTTokenSpecifier, caseTTree, defaultCase, getIn, getOut, setIn, setOut
private java.lang.String currentProd
private java.lang.String currentAlt
private int counter
private ResolveIds ids
private ResolveProdTransformIds prodTransformIds
private java.util.Map altElemTypes
private final java.util.Map altTransformElemTypes
private final java.util.Map termNumbers
public ComputeCGNomenclature(ResolveIds ids, ResolveProdTransformIds prodTransformIds)
public void setAltElemTypes(java.util.Map aMap)
public java.util.Map getAltTransformElemTypes()
public java.util.Map getTermNumbers()
public void caseAProd(AProd production)
caseAProd
in interface Analysis
caseAProd
in class DepthFirstAdapter
public void inAAlt(AAlt nodeAlt)
inAAlt
in class DepthFirstAdapter
public void caseAAst(AAst node)
caseAAst
in interface Analysis
caseAAst
in class DepthFirstAdapter
public void inAElem(AElem node)
inAElem
in class DepthFirstAdapter
public void inANewTerm(ANewTerm node)
inANewTerm
in class DepthFirstAdapter
public void inANewListTerm(ANewListTerm node)
inANewListTerm
in class DepthFirstAdapter
public void outAListTerm(AListTerm node)
outAListTerm
in class DepthFirstAdapter
public void caseASimpleTerm(ASimpleTerm node)
caseASimpleTerm
in interface Analysis
caseASimpleTerm
in class DepthFirstAdapter
public void caseANullTerm(ANullTerm node)
caseANullTerm
in interface Analysis
caseANullTerm
in class DepthFirstAdapter
public void caseASimpleListTerm(ASimpleListTerm node)
caseASimpleListTerm
in interface Analysis
caseASimpleListTerm
in class DepthFirstAdapter
Copyright © 1997-2013 Sablecc. All Rights Reserved.