|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.ObjectdRegAut.RegExp
public class RegExp
Regular expression. [Martin, Def. 3.1]
We use the following special notation for regular expressions:
)

):
the singleton string a
| Constructor Summary | |
|---|---|
RegExp(String string,
Alphabet alphabet)
Constructs a regular expression from a string. |
|
| Method Summary | |
|---|---|
void |
simplify()
Simplifies this regular expression (using some very simple rewrite rules). |
NFA |
toNFA()
Converts this regular expression to an NFA. |
String |
toString()
Returns a string representation of this regular expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegExp(String string,
Alphabet alphabet)
throws IllegalArgumentException
string - string representation of regular expressionalphabet - the alphabet
IllegalArgumentException - if an alphabet symbol in the string is not in the alphabet
or the string is not a syntactically correct regular expression| Method Detail |
|---|
public void simplify()
public NFA toNFA()
NFA. [Martin, Th. 3.25]
public String toString()
toString in class Object
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||