Package org.javacc.parser
Class Semanticize
- java.lang.Object
-
- org.javacc.parser.Semanticize
-
public class Semanticize extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSemanticize.EmptyCheckerprivate static classSemanticize.FixRJustNamesObjects of this class are created from class Semanticize to work on references to regular expressions from RJustName's.private static classSemanticize.LookaheadCheckerprivate static classSemanticize.LookaheadFixerprivate static classSemanticize.ProductionDefinedChecker
-
Field Summary
Fields Modifier and Type Field Description private Contextcontextprivate java.util.List<RegExprSpec>itemListprivate static java.lang.StringloopStringprivate longnextGenerationIndexprivate static RegularExpressionotherprivate java.util.List<java.util.List<RegExprSpec>>removeList
-
Constructor Summary
Constructors Modifier Constructor Description privateSemanticize(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidaddLeftMost(NormalProduction prod, Expansion exp)static booleanemptyExpansionExists(Expansion exp)protected ContextgetContext()private static booleanhasIgnoreCase(java.util.Hashtable<java.lang.String,RegularExpression> table, java.lang.String str)(package private) longnextGenerationIndex()private voidprepareToRemove(java.util.List<RegExprSpec> vec, RegExprSpec item)private static booleanprodWalk(NormalProduction prod, Context context)private voidremovePreparedItems()private static booleanrexpWalk(RegularExpression rexp, Context context)static voidstart(Context context)
-
-
-
Field Detail
-
context
private final Context context
-
removeList
private java.util.List<java.util.List<RegExprSpec>> removeList
-
itemList
private java.util.List<RegExprSpec> itemList
-
nextGenerationIndex
private long nextGenerationIndex
-
other
private static RegularExpression other
-
loopString
private static java.lang.String loopString
-
-
Constructor Detail
-
Semanticize
private Semanticize(Context context)
-
-
Method Detail
-
getContext
protected final Context getContext()
-
prepareToRemove
private void prepareToRemove(java.util.List<RegExprSpec> vec, RegExprSpec item)
-
removePreparedItems
private void removePreparedItems()
-
nextGenerationIndex
final long nextGenerationIndex()
-
start
public static void start(Context context) throws MetaParseException
- Throws:
MetaParseException
-
hasIgnoreCase
private static boolean hasIgnoreCase(java.util.Hashtable<java.lang.String,RegularExpression> table, java.lang.String str)
-
emptyExpansionExists
public static boolean emptyExpansionExists(Expansion exp)
-
addLeftMost
private static void addLeftMost(NormalProduction prod, Expansion exp)
-
prodWalk
private static boolean prodWalk(NormalProduction prod, Context context)
-
rexpWalk
private static boolean rexpWalk(RegularExpression rexp, Context context)
-
-