gi
Class ERE
java.lang.Object
|
+--gi.Lexicon
|
+--gi.Grammar
|
+--gi.LR0_Grammar
|
+--gi.LR1_Grammar
|
+--gi.ERE
- class ERE
- extends LR1_Grammar
This class implements a Grammar
for interpreting POSIX extended regular expressions (EREs).
- Version:
- 0.9
- Author:
- © 1999-2000 Craig A. Rich <carich@acm.org>
- See Also:
- Source code
Inner classes inherited from class gi.Lexicon |
Lexicon.Alphabet, Lexicon.Concatenation, Lexicon.Exception, Lexicon.Expression, Lexicon.Match, Lexicon.NonMatch, Lexicon.PosixClass, Lexicon.Range, Lexicon.Repetition, Lexicon.Set, Lexicon.Singleton, Lexicon.UnicodeCategory, Lexicon.Union |
Field Summary |
private static Grammar |
ere
The Grammar for POSIX extended regular expressions (EREs). |
Constructor Summary |
(package private) |
ERE()
Constructs a Grammar for POSIX extended regular expressions (EREs). |
Method Summary |
(package private) static Lexicon.Expression |
parse(String string)
Creates an Expression by interpreting a POSIX extended regular expression (ERE), as used in egrep. |
Methods inherited from class gi.Grammar |
first, first, follow, grab, interpret, interpret, interpret, interpret, interpret, interpret, interpret, nonterminal, put, put, terminal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
ere
private static Grammar ere
The Grammar
for POSIX extended regular expressions (EREs).
ERE
ERE()
Constructs a Grammar
for POSIX extended regular expressions (EREs).
parse
static Lexicon.Expression parse(String string)
throws Lexicon.Exception
Creates an Expression
by interpreting a POSIX extended regular expression (ERE), as used in egrep.
- Parameters:
string
- the POSIX extended regular expression (ERE) to be interpreted.- Returns:
- the
Expression
constructed by interpreting string
. - Throws:
Lexicon.Exception
- if a syntax error occurs.
© 1999-2000 Craig A. Rich <carich@acm.org>