public class RegExps
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Action> |
actions
the action of a regexp
|
(package private) java.util.List<java.lang.Boolean> |
BOL
flag if it is a BOL regexp
|
(package private) int |
gen_look_count
Count of many general lookahead expressions there are.
|
(package private) java.util.List<java.lang.Integer> |
lines
the spec line in which a regexp is used
|
(package private) java.util.List<RegExp> |
look
the lookahead expression
|
(package private) java.util.List<java.lang.Integer> |
look_entry
the forward DFA entry point of the lookahead expression
|
(package private) java.util.List<RegExp> |
regExps
the regexp
|
(package private) java.util.List<java.util.List<java.lang.Integer>> |
states
the lexical states in wich the regexp is used
|
Constructor and Description |
---|
RegExps() |
Modifier and Type | Method and Description |
---|---|
void |
addStates(int regNum,
java.util.List<java.lang.Integer> newStates) |
void |
checkActions() |
void |
checkLookAheads() |
Action |
getAction(int num) |
int |
getLine(int num) |
RegExp |
getLookAhead(int num) |
int |
getLookEntry(int num) |
int |
getNum() |
RegExp |
getRegExp(int num) |
java.util.List<java.lang.Integer> |
getStates(int num) |
int |
insert(int line,
java.util.List<java.lang.Integer> stateList,
RegExp regExp,
Action action,
java.lang.Boolean isBOL,
RegExp lookAhead) |
int |
insert(java.util.List<java.lang.Integer> stateList,
Action action) |
boolean |
isBOL(int num) |
boolean |
isEOF(int num) |
private void |
lookAheadCase(int regExpNum)
Determine which case of lookahead expression regExpNum points to (if any).
|
int |
NFASize(Macros macros) |
java.util.List<java.lang.Integer> lines
java.util.List<java.util.List<java.lang.Integer>> states
java.util.List<RegExp> regExps
java.util.List<Action> actions
java.util.List<java.lang.Boolean> BOL
java.util.List<RegExp> look
java.util.List<java.lang.Integer> look_entry
int gen_look_count
public int insert(int line, java.util.List<java.lang.Integer> stateList, RegExp regExp, Action action, java.lang.Boolean isBOL, RegExp lookAhead)
public int insert(java.util.List<java.lang.Integer> stateList, Action action)
public void addStates(int regNum, java.util.List<java.lang.Integer> newStates)
public int getNum()
public boolean isBOL(int num)
public RegExp getLookAhead(int num)
public boolean isEOF(int num)
public java.util.List<java.lang.Integer> getStates(int num)
public RegExp getRegExp(int num)
public int getLine(int num)
public int getLookEntry(int num)
public void checkActions()
public Action getAction(int num)
public int NFASize(Macros macros)
public void checkLookAheads()
private void lookAheadCase(int regExpNum)
regExpNum
- the number of the regexp in RegExps.