Package | Description |
---|---|
jflex |
Modifier and Type | Class and Description |
---|---|
class |
RegExp1
Stores a regular expression from the rules section of a JFlex specification.
|
class |
RegExp2
Regular expression with two children (e.g.
|
Modifier and Type | Method and Description |
---|---|
RegExp |
RegExp.anyChar()
Returns a regexp that matches any character:
[^] |
RegExp |
Macros.getDefinition(String name)
Fetches the definition of the macro with the specified name,
|
RegExp |
RegExps.getLookAhead(int num) |
RegExp |
RegExps.getRegExp(int num) |
RegExp |
RegExp.resolveTilde(Macros macros)
Recursively convert tilde (upto) expressions into negation and star.
|
RegExp |
RegExp.rev(Macros macros)
Create a new regexp that matches the reverse text of this one.
|
Modifier and Type | Method and Description |
---|---|
int |
RegExps.insert(int line,
List<Integer> stateList,
RegExp regExp,
Action action,
Boolean isBOL,
RegExp lookAhead) |
boolean |
Macros.insert(String name,
RegExp definition)
Stores a new macro and its definition.
|
jflex.IntPair |
NFA.insertNFA(RegExp regExp)
Constructs an NFA for regExp such that the NFA has
exactly one start state,
exactly one end state,
no transitions leading out of the end state
no transitions leading into the start state
|
static boolean |
SemCheck.isFiniteChoice(RegExp re)
Returns true iff the expression is a finite choice of fixed length
expressions.
|
static int |
SemCheck.length(RegExp re)
Returns length if expression has fixed length, -1 otherwise.
|
static boolean |
SemCheck.maybeEmtpy(RegExp re)
Checks if the expression potentially matches the empty string.
|
Constructor and Description |
---|
RegExp2(int type,
RegExp r1,
RegExp r2) |
Copyright © 1998–2016. All rights reserved.