Generic Interpreter 0.9
Protected API
A B C D E G I L P S T U W X

A

alnum() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of alphanumeric characters.
alpha() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of alphabetic characters.
attribute - Variable in class gi.Grammar.ParseTree
The attribute at the root of this ParseTree.

B

blank() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of blank characters.

C

cntrl() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of control characters.

D

digit() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of decimal digit characters.

E

END_OF_SOURCE - Static variable in class gi.Lexicon
The terminal matching the character at the end of a source stream.
evaluate(Grammar.ParseTree) - Method in class gi.Grammar.Semantics
Evaluates attributes in a ParseTree when interpreting.
expression(String) - Static method in class gi.Lexicon
Creates an Expression by interpreting a POSIX extended regular expression (ERE), as used in egrep.

G

getMessage() - Method in class gi.Lexicon.Exception
Returns the error message.
gi - package gi
This package implements regular and context-free language theory--Lexicon and Grammar.
grab(BufferedReader) - Method in class gi.Lexicon
Grabs a terminal from a source character stream using this Lexicon.
grab(BufferedReader) - Method in class gi.Grammar
Grabs terminals from a source character stream using this Grammar.
Grammar - class gi.Grammar.
This class implements a Grammar.
Grammar.ParseTree - class gi.Grammar.ParseTree.
This class implements a ParseTree constructed by interpreting a source stream.
Grammar.Semantics - class gi.Grammar.Semantics.
This class implements Semantics embedded in productions and evaluated when interpreting.
Grammar.Semantics() - Constructor for class gi.Grammar.Semantics
Constructs Semantics.
Grammar() - Constructor for class gi.Grammar
Constructs an empty Grammar.
graph() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of graphical characters.

I

interpret() - Method in class gi.Grammar
Interprets the standard input stream using this Grammar.
interpret(File) - Method in class gi.Grammar
Interprets a source file using this Grammar.
interpret(InputStream) - Method in class gi.Grammar
Interprets a source byte stream using this Grammar.
interpret(PipedWriter) - Method in class gi.Grammar
Interprets a source pipe using this Grammar.
interpret(Reader) - Method in class gi.Grammar
Interprets a source character stream using this Grammar.
interpret(String) - Method in class gi.Grammar
Interprets a source string using this Grammar.
interpret(String[]) - Method in class gi.Grammar
Interprets by command-line arguments using this Grammar.

L

Lexicon - class gi.Lexicon.
This class implements a Lexicon.
Lexicon.Concatenation - class gi.Lexicon.Concatenation.
This class implements an Expression denoting the concatenation of two regular languages.
Lexicon.Concatenation(Lexicon.Expression, Lexicon.Expression) - Constructor for class gi.Lexicon.Concatenation
Constructs an Expression denoting the concatenation of two regular languages.
Lexicon.Exception - exception gi.Lexicon.Exception.
This class implements an Exception.
Lexicon.Exception(Lexicon, String) - Constructor for class gi.Lexicon.Exception
Constructs an Exception with a message.
Lexicon.Match - class gi.Lexicon.Match.
This class implements an Expression denoting the set of characters in a string.
Lexicon.Match(char) - Constructor for class gi.Lexicon.Match
Constructs an Expression denoting the set containing a character.
Lexicon.Match(String) - Constructor for class gi.Lexicon.Match
Constructs an Expression denoting the set of characters in a string.
Lexicon.NonMatch - class gi.Lexicon.NonMatch.
This class implements an Expression denoting the set of characters not in a string.
Lexicon.NonMatch(char) - Constructor for class gi.Lexicon.NonMatch
Constructs an Expression denoting the set of characters except one.
Lexicon.NonMatch(String) - Constructor for class gi.Lexicon.NonMatch
Constructs an Expression denoting the set of characters not in a string.
Lexicon.PosixClass - class gi.Lexicon.PosixClass.
This class implements an Expression denoting the set of characters in a POSIX class.
Lexicon.Range - class gi.Lexicon.Range.
This class implements an Expression denoting the set of characters in a range.
Lexicon.Range(char, char) - Constructor for class gi.Lexicon.Range
Constructs an Expression denoting the set of characters in a range.
Lexicon.Repetition - class gi.Lexicon.Repetition.
This class implements an Expression denoting the repetition of a regular language.
Lexicon.Repetition(Lexicon.Expression, int, int) - Constructor for class gi.Lexicon.Repetition
Constructs an Expression denoting the repetition of a regular language.
Lexicon.Singleton - class gi.Lexicon.Singleton.
This class implements an Expression denoting the set containing a string.
Lexicon.Singleton(String) - Constructor for class gi.Lexicon.Singleton
Constructs an Expression denoting the set containing a string.
Lexicon.UnicodeCategory - class gi.Lexicon.UnicodeCategory.
This class implements an Expression denoting the set of characters in a Unicode category.
Lexicon.UnicodeCategory(byte) - Constructor for class gi.Lexicon.UnicodeCategory
Constructs an Expression denoting the set of characters in a Unicode category.
Lexicon.Union - class gi.Lexicon.Union.
This class implements an Expression denoting the union of two regular languages.
Lexicon.Union(Lexicon.Expression, Lexicon.Expression) - Constructor for class gi.Lexicon.Union
Constructs an Expression denoting the union of two regular languages.
Lexicon() - Constructor for class gi.Lexicon
Constructs an empty Lexicon.
LL1_Grammar - class gi.LL1_Grammar.
This class implements an LL(1) parser around a Grammar.
LL1_Grammar() - Constructor for class gi.LL1_Grammar
Constructs an LL(1) parser around a new empty Grammar.
LL1_Grammar(Grammar) - Constructor for class gi.LL1_Grammar
Constructs an LL(1) parser around an existing Grammar.
lower() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of lowercase alphabetic characters.
LR0_Grammar - class gi.LR0_Grammar.
This class implements an LR(0) parser around a Grammar.
LR0_Grammar() - Constructor for class gi.LR0_Grammar
Constructs an LR(0) parser around a new empty Grammar.
LR0_Grammar(Grammar) - Constructor for class gi.LR0_Grammar
Constructs an LR(0) parser around an existing Grammar.
LR1_Grammar - class gi.LR1_Grammar.
This class implements an LR(1) parser around a Grammar.
LR1_Grammar() - Constructor for class gi.LR1_Grammar
Constructs an LR(1) parser around a new empty Grammar.
LR1_Grammar(Grammar) - Constructor for class gi.LR1_Grammar
Constructs an LR(1) parser around an existing Grammar.

P

phrase - Variable in class gi.Grammar.ParseTree
The subtrees of the root of this ParseTree.
print() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of printable characters.
punct() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of punctuation characters.
put(Object, Lexicon.Expression) - Method in class gi.Lexicon
Puts a terminal and associated Expression into this Lexicon.
put(Object, Object[]) - Method in class gi.Grammar
Puts a production into this Grammar.
put(Object, Object[][]) - Method in class gi.Grammar
Puts productions into this Grammar.

S

SLR1_Grammar - class gi.SLR1_Grammar.
This class implements an SLR(1) parser around a Grammar.
SLR1_Grammar() - Constructor for class gi.SLR1_Grammar
Constructs an SLR(1) parser around a new empty Grammar.
SLR1_Grammar(Grammar) - Constructor for class gi.SLR1_Grammar
Constructs an SLR(1) parser around an existing Grammar.
space() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of space characters.
symbol - Variable in class gi.Grammar.ParseTree
The symbol at the root of this ParseTree.

T

toString() - Method in class gi.Grammar.ParseTree
Returns a string representation of this ParseTree.

U

upper() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of uppercase alphabetic characters.

W

word() - Method in class gi.Lexicon
Returns the word most recently grabbed using this Lexicon.

X

xdigit() - Static method in class gi.Lexicon.PosixClass
Creates an Expression denoting the set of hexadecimal digit characters.

A B C D E G I L P S T U W X
 

© 1999-2000 Craig A. Rich <carich@acm.org>