JFlex
public class RegExp extends Object
Constructor Summary | |
---|---|
RegExp(int type)
Create a new regular expression of the specified type.
|
Method Summary | |
---|---|
boolean | isCharClass(Macros macros)
Find out if this regexp is a char class or equivalent to one.
|
String | print(String tab)
Returns a String-representation of this regular expression
with the specified indentation.
|
int | size(Macros macros)
The approximate number of NFA states this expression will need (only
works correctly after macro expansion and without negation)
|
String | toString()
Returns a String-representation of this regular expression |
Parameters: type a value from the cup generated class sym.
See Also: sym
Parameters: macros for macro expansion
Returns: true if the regexp is equivalent to a char class.
Parameters: tab a String that should contain only space characters and that is inserted in front of standard String-representation pf this object.
Parameters: macros macro table for expansion