|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Parser
to immediately bail by throwing a
TranslationException
.
LRTranslationComponent
.Symbol
.ACCEPT
instruction type.
ACCEPT
instruction occurs.
token
table, where the first
dimension is the state number and the value at that address is
the Token
type number.
DPA
parse 'action'.getContextAction(int, int)
to
signal a context stack peek, meaning "change to the context
given at the top of stack".
getContextAction(int, int)
to
signal a context stack peel, meaning "execute ACTION_POP until
the top of the stack is equal to the return value of
getContextRegister(int, int)
.
getContextAction(int, int)
to
signal a context stack pop, meaning "change back to the
previous stack context".
getContextAction(int, int)
to
signal a context stack pounce, meaning "execute an ACTION_POP,
then an ACTION_PUSH".
getContextAction(int, int)
to
signal a context stack push, meaning "shift to the context
having the ID given by the return value of
getContextRegister(int, int)
".
Action
associated by traversing the
path given from the given state over the given symbol.
given
char to the list of alternatives.
GrammarSymbol
to the end of
this Production
sequence.
Symbol
array.
RegularExpression
to the list of
alternatives.
List
of symbol names as the left-hand-side.
Algorithm
interface is a very general abstraction
over some evaluatable process.AlgorithmException
is a general
Exception
possibly thrown by Algorithm
implementations.AlgorithmException
.
AlgorithmException
on the nested
Throwable
.
AlgorithmException
on the nested
Throwable
having the given message.
Arboreal
interface is implemented by those objects
which can render themselves in Tree
form.DPATransformer
implementation which converts
an ArrayDPA
into a MesoArrayDPA
.Array2MesoArrayDPATransformer
.
DPA
which uses full-length
array parse tables.ArrayDPA
on the given action table,
transition table, production length table, and Action registry.
DPAConstructor
which
builds an ArrayDFA
.IntArray
which uses an
array internally.ArrayIntArray
wrapping the given
int[]
.
IntFunction
which uses an
array internally to store values and an IntSet
to
track keys.ArrayIntFunction
.
IntList
which uses an
array internally.ArrayIntList
using a default
initial capacity.
ArrayIntList
with the given initial
capacity.
IntStack
which uses an
array internally.ArrayIntStack
using a default
capacity.
ArrayIntStack
with the given
initial capacity.
Symbol
which has a
fixed length.ArraySymbol
with the given array
length given by len
.
ArraySymbol
with the given type and
array length given by len
.
Symbol
s within
this Symbol
.
Symbol
at the nth visible position of
the stack such that position 0
is the top of the
stack.
Edge
to the caller such that
StringBuffer
-like programming style is
supported.
Node
to the caller such that
StringBuffer
-like programming style is
supported.
Auditor
is a "global" repository for errors and
warnings; a listener for complaints.BinaryIntFunction
is a mapping from an
int
tuple to an int
value.IntSet
which uses a
java.util.BitSet
internally.BitSetIntSet
with a default initial
length of 17.
BitSetIntSet
with the given initial
length.
char
without advancing the
buffer (like a `peek').
BubbleTree
is a binary tree (interval tree) data
structure which maintains a IntSet
of integers at each
node in the tree.BubbleTree
.
StringBuffer
that can render itself to a Writer
.ClassDeclaration
such
that the class is "burned".
Burner
is some entity which is capable of creating a
class using the Jenesis
API; it "burns" the state of some object into a
ClassDeclaration
(not unlike "burning" a
CD-Recordable
disc).BurnerController
is centrally responsible for
overseeing and coordinating various Burner
instances.Burner
instances; makes working with the Jenesis API easier.Channel
.
Epsilon
implementation.ContextFreeGrammar
implementation.CFGrammar
.
Item
implementation.LR1Item
implementation.NonTerminal
implementation.Production
implementation.Terminal
implementation.Channel
is a buffered writing device for a
Log
.CharClass
interface is another 'utility' interface
for assembling complex Unions
.CharString
interface is a 'utility' regex object
that takes care of the work of concatenating individual intervals.Symbol
which internally
contains a char.CharSymbol
with the given
char
value.
CharSymbol
with the given
type and char
value.
Clock
is a simple utility class used for timing
things, like a stopwatch.Clock
and marks the current time.
Token
.
clone()
given above.
IntSet
.
IntArray
.
Closure
interface is the abstraction for the
Kleene closure construct ('*').Translator
for regular
expressions.Translator
for the
syntacs grammar itself.Compile
is the command-line interface to compile
grammar files into Translators.compile()
compiles and returns a RegularSet
object which can
be used for generation of DFA
's, for example.
compile()
returns a
ContextFreeSet
object which can then be used to
construct a DPA
.
compile()
will go through everything and do
all the semantic checks.
Complaint
is a general name for a semantic/syntactic
warnings and errors.errors() +
warnings()
).
Concatenation
interface is the abstraction for the
fundamental concatenation regular construct.Symbol
which needs no
internal state other than the symbol type.ConstantSymbol
with the given type.
DPA
.
DFA
from the given
RegularSet
.
true
if the given value
is in
the list, false
otherwise.
true
if the given value is already in this
IntSet
.
true
if the stack contains the given
value, false
otherwise.
ContextFreeGrammar
interface is a factory for
assembling context free grammars, analogous to the
RegularGrammar
interface.ContextFreeSet
interface is an optimized version
of the ContextFreeGrammar
object used by
DPA
construction algorithms.Session
instance.
Session
to the given instance.
Correction
is a discrete instruction for a
Parser
to execute (apply) during an error recovery.Channel
.
Session
instance.
DEAD_STATE
is the state where all exit paths
lead back to the DEAD_STATE
.
Channel
.
DFA
) interface
abstracts a Moore state machine used to recognize discrete
sequences of symbols (usually character symbols).DFA
from
a RegularSet
can be encapsulated by the
DFAConstructor
interface.DFA
can be encapsulated by the
DFATransformer
interface.XML
DOM
trees.GraphViz
interface.DPAConstructor
interface abstracts algorithms
which are capable of transforming a ContextFreeSet
into a DPA
.DPATransformer
interface abstracts algorithms
which are capable of transforming an Object
into a
DPA
.Edge
to the graph and returns it to the
caller for further refinement.
EmptyIntSet
.
IntSet
which may never contain
elements.Epsilon
interface represents the abstract symbol
for 'e', the pattern which matches the empty string.Epsilon
interface is a special type of
Terminal
.ERROR
instruction type.
Action
cached here for
convenience.
ERROR
symbol.
Algorithm
, possibly throwing an
AlgorithmException
along the way.
ExpressionTerminator
interface describes a special
pseudo-abstract object that symbolizes the end of a particular
regular expression.Symbol
at the nth visible position of
the stack such that position n
is the shallowest
part of the stack.
IntSet
maintained at the interval which
includes the given key.
Object
under the given key or
null
if no such key exists.
Auditor
instance.
boolean
under the given key.
boolean
under the given key.
char
and advances the
offset by one.
null
if no such ID is known.
UNDEFINED_CONTEXT
if no such context exists.
ACTION_XXX
constants
in this interface.
ContextFreeGrammar
.
contextID
and symbolID
.
IntArray
.
null
if no such ID is known.
Item
which represents the core of this
Item
.
Epsilon
symbol in the (rare) case one
needs it.
Epsilon
object if needed.
List
is an Complaint
.
Element
.
IntSet
of Intervals
which
are visible at the logical beginning of the the expression.
IntSet
Of terminal
s that is
the first set for this GrammarSymbol
.
IntSet
of Item
s over the
FIRST(beta, a);
Intervals
(input)
that may occur directly after encountering this one.
UNDEFINED_NONTERMINAL
is no such goal symbol has
been set.
RegularGrammar
to which this
RegularToken
belongs.
TranslatorGrammar
for this
Translator
.
GrammarSymbol
with the given id.
IntArray
for the right hand side of
this Production
.
RegularExpression
at the head of the
string.
Token
.
Interval
.
RegularSet
.
GrammarSymbol
.
Production
.
Item
.
Item
in the
Production
, A := *ab.
Input
instance.
Object
under the given key.
Object
under the given key.
RegularExpression
this closure
'wraps'.
kleene.getInternal()
would return
'a'.
RegularExpression
which this '?'
modifies.
Interval
by the given id.
Item
with the given id.
IntSet
of Intervals
which
are visible at the logical end of the the expression.
Listener
to be notified of token
Symbol
events.
-1
if it
is not known.
Terminal
symbol which may follow this
Item
.
LRTranslatorGrammar
to the given
instance.
Token
.
RegularSet
.
GrammarSymbol
.
Translator
.
Node
.
NonTerminal
defined as the left hand
side of this Production
.
NonTerminal
with the given id.
null
if no such ID is known.
UNDEFINED_NONTERMINAL
if no such nonterminal
exists.
IntArray
.
LexerInterpreter
may relay Symbol
events to.
ParserInterpreter
.
Production
to which this
Item
is associated.
Production
with the given id.
null
if no such ID is known.
UNDEFINED_PRODUCTION
is no such production exists.
NonTerminal
as an IntArray
.
UNDEFINED_PRODUCTION
if no such ID is known.
productionID
or
UNDEFINED_PRODUCTION
if no such production is known.
IntArray
.
IntArray
or null
if no such ID is known.
Properties
defined for this
Translator
.
Properties
instance.
Properties
instance.
null
of no such property exists.
IntArray
of Productions
which have this NonTerminal
as the left hand side.
RegularExpression
which implies the
set of strings this Token
may assume.
RegularGrammar
.
LRTranslatorInterpreter
should be able
to produce some Object
which was built from the
parse tree.
null
if it is not known.
IntSet
of intervals which are visible
from some abstract initial state.
Production
designated as the start.
String
under the given key or
null
if no such key exists.
String
under the given key or
the given default if no such key exists.
null
if no such ID exists.
UNDEFINED_SYMBOL
if no such name exists in the
list of grammar symbols.
RegularExpression
at the tail of the
string.
Terminal
with the given id.
null
if no such ID is known.
UNDEFINED_TERMINAL
if no such terminal exists.
String
for the
terminal having the given ID or null
if no such ID
is known.
IntArray
.
Token
which this
ExpressionTerminator
implies.
Token
object upon which this
Terminal
takes its identity.
Token
with the given id.
Correction
as one of the
constants in this interface.
Complaint
as one of the
constants in this interface.
List
is an Complaint
.
nonterminal
.
GrammarSymbol
is the base interface for
Terminal
s and NonTerminal
s.GraphViz
instances are used to generate graphviz dot
files.true
if there is an existing context with
the given name, false
otherwise.
true
if there is at least one error,
false
otherwise.
true
if a goal symbol has been set,
false
otherwise (the goal symbol has not been
set).
IntRelation
which uses a
hash table such that each entry in the table contains a
BitSetIntSet
.HashBitSetIntRelation
with a default
initial capacity.
HashBitSetIntRelation
with the given
initial capacity.
IntFunction
which uses a
hash table to maintain the association between key and value.HashIntFunction
with a default
initial capacity.
HashIntFunction
with the given
initial capacity.
true
if there is at least one more
correction to apply, false
if no more corrections
need to be done.
true
if the dot is not after the last
symbol in the Production
.
true
if there is at least one more
element, false
otherwise (at the end of the list).
true
if a nonterminal having the given
ID exists in this grammar, false
otherwise.
true
if a nonterminal having the given
name exists in this grammar, false
otherwise.
true
if the dot is not before the first
symbol in the Production
.
true
if the start context has already been
set, false
otherwise.
true
if there is a terminal with the given
ID, falsew
otherwise.
true
if there is a terminal with the given
name, falsew
otherwise.
true
if there is at least one warning,
false
otherwise.
Edge
covers.
char
in the
Interval
.
Token
which is returned by
the output(int state)
method.
IntSet
wrapper implementation which throws
UnsupportedMethodOperation
exceptions when the set is
attempted to be changed.ImmutableIntSet
wrapping the given
set.
true
if the given char
(as an
int
) is within the bounds of this character set.
Channel
.
Object
.
DFA
or a DFA[]
array.
DPA
.
Object
.
Edge
tree into the
given Vector
.
Input
interface is responsible for presenting a
raw character stream to the Lexer
in a way that makes
the lexing process easier.IntIterator
which steps an
int[]
array.IntArray
.
Interpret
is the command-line interface to execute test
translations.Interval
interface abstracts a contiguous bounded
block of characters.Intervals
used by the
grammar.
IntFunction
is an abstraction over some entity which
maps integer keys to integer values.IntIterator
interface is used to run through a
list of integers.IntList
abstracts a dynamically-growable list of
integers.IntRelation
is a mapping from int
to
IntSet
.IntSet
abstracts a mathematical set of integers.IntStack
abstracts a last-in-first-out
dynamically-growable list of integers.true
if the Session
instance
has been set (is not null
).
true
if this is a digraph instance (for
input to the dot program, false
if it is a
non-directed graph (for input to the neato program).
true
if there are no errors or warnings,
false
if there is at least one error or at least
one warning.
true
if the set of keys is the empty set.
true
if there are no members in this
IntSet
(the empty set).
true
if the stack has no elements,
false
otherwise.
true
if this is an empty tree.
true
if an extry exists for the given key
and the value is either a boolean
having value
false
, the string "false", or the string "no".
true
if this is a 'negated' character
class, grammatically symbolized by the caret '^'.
true
if no entry exists for the given key,
the value is either a boolean
having value
true
, or any string other than "false" or "no".
true
if no entry exists for the given key,
the value is either a boolean
having value
false
, or any string other than "true" or "yes".
true
if this
RegularExpression
either *is* Epsilon
or derives it.
true
if this item either is
Epsilon
(case of Terminal
) or derives
it (case of NonTerminal
).
true
if this GrammarSymbol
is
an instanceof Terminal
and may safely be cast to a
Terminal
(or vice versa).
Interval
is an instanceof
ExpressionTerminator
.
true
if an extry exists for the given key
and the value is either a boolean
having value
true
, the string "true", or the string "yes".
Item
interface represents a discrete position or
progress along the right hand side of a Production
.Item
s in the grammar.
IntIterator
over the chars named by this
Interval
of characters.
IntIterator
view of the members in the
IntSet
.
IntSet
view of the keys.
LRConstructor
that builds
LALR1 parse tables.LALR1Constructor
.
Clock
).
Sentence
, aka the
exposed portion of the stack for this reduction.
GrammarSymbols
on the right
hand side.
Lexer
is responsible for reading an
Input
stream and breaking it up into a stream of
tokens.LexerInterpreter
is responsible for handling "lexer
events".Symbol
represented as an
Object
.
IntSet
which uses a linked
list internally.ListIntSet
.
Symbol
which uses a list.ListSymbol
with the given
type and given Object
value as the first list item.
ListSymbol
with the given
Object
value as the first List item.
Edge
covers.
char
in the Interval
.
Log
is a stream which is partitioned into different
Channel
s, each Channel dedicated to a particular
level.LR1Item
corresponding to this core
Item
with the given lookahead.
LRConstructor
that builds
canonical LR1 parse tables.LR1Constructor
.
LR1Item
is a more specialized type of
Item
that contains lookahead information pertinent to
the generation of LR-grammars by certain algorithms.LRConstructor
which defines
code common to different LR construction algorithms.LRTranslationComponent
interface describes common
behavior required of all components in the lr translation process
-- the ability to be reset to an initial state, the need to
reference the LRTranslatorGrammar
during the
translation process, the need of referencing the Input
during the translation process, and access to general properties.LRTranslator
is a translator which uses LR-parsing.LRTranslatorGrammar
interface describes the
symbolic components of a grammar, relevant to LR parsing
algorithms.Burner
which creates
LRTranslatorGrammar
implementations.LRTranslatorInterpreter
interface is a union of
the LexerInterpreter
and
ParserInterpreter
interfaces..xml
or
.stt
).
match
method is used by the Lexer
to inform the interpreter that a new token has been found at the
given offset with the given length.
DFA
implementation which uses truncated array
parse tables.DPA
implementation which uses meso-array
parse tables.MesoArrayDPA
on the given action
transition table, go transition table, and action table.
MesoArrayDPA
to a corresponding source code
representation.Session
instance
which is consulted throughout the API.CharClass
expression
([^-a-z]).
CharString
expression
('+') wrapping the given RegularExpression
.
Closure
expression
('*') wrapping the given RegularExpression
.
Concatenation
expression from the given left and right
RegularExpressions
.
Interval
expression
over the given char
.
Interval
expression
over the given character range from lo to hi, inclusive.
NonTerminal
with the
given name.
Option
expression
('?') wrapping the given RegularExpression
.
PositiveClosure
expression ('+') wrapping the given
RegularExpression
.
Production
on the
given LHS NonTerminal
and predefined length.
Terminal
based on the
given Token
.
RegularToken
mapping
the given name to the given RegularExpression
.
RegularToken
in this grammar
having the given tokenID number, name, and regex.
Translator
for this
TranslatorGrammar
having some default set of
properties.
Translator
for this
TranslatorGrammar
using the given
Properties
.
Union
expression.
State
to which this
Edge
traverses.
Correction
to apply.
Item
which represents moving the dot
forward one symbol.
GrammarSymbol
b where [a dot b].
Node
to the graph and returns it to the
caller for further refinement.
NonTerminal
interface abstracts the symbol on the
left-hand side of a Production
.NonTerminal
s in the grammar.
Complaint
to the end of the the
internal List
of complaints and returns the same
object to the caller.
Complaint
of the given type having
the given message and given line number.
Complaint
of the given type having
the given message.
Complaint
of the given type having
the given message at the given Input
offset with
the given length.
Parser
that a new Symbol
(token) has been discovered.
Symbol
.ObjectSymbol
with the given
type and Object
value.
ObjectSymbol
with the given
Object
value.
Option
interface is another 'utility' regex which
abstracts the '?' operator.Parser
is responsible for managing the
construction of the parse tree; to do so it interacts with the
LexerInterpreter
(presumably) and the
ParserInterpreter
.ParserInterpreter
interface is reponsible for
handling "parser events".len
elements off the stack and returns the
top item on the stack (a peek()
).
int
to a
String
.
int
to a
String
.
int
to a
String
.
Pickler
class contains static methods to transform
int
arrays into String
objects and vice
versa.PositiveClosure
interface is a 'utility'
RegularExpression
which makes it easier to build more
complex concatenation::Kleene closure constructs like
aa*
.State
to which the
Edge
is rooted.
Item
which represents moving the dot
backwards one symbol.
GrammarSymbol
a where [a dot b].
Complaint
to
System.out
.
printMessage()
with the exception
that output is written to the given PrintStream
rather than System.out
.
STT
grammar and returns the
corresponding Translator
for the grammar.
XML
grammar and returns the
corresponding Translator
for the grammar.
Production
interface is an abstraction of a
discrete 'rule' in a grammar.Production
s in the grammar.
StandardLRTranslatorGrammar
instance and the
ID numbers of the grammar symbols after they exists in the
DPA
.int
value in the IntSet
.
CharClass
implementation.RECharClass
on the given
REGrammar
.
CharString
implementation.RECharString
on the given
REGrammar
and input String
.
Closure
implementation.REClosure
on the given
REGrammar
and input RegularExpression
.
Concatenation
implementation.REConcatenation
on the given
REGrammar
and left & right
RegularExpression
inputs.
ERROR
instruction is hit.
Recovery
is a sequential list of
Correction
instances to be executed by the
Parser
..REDUCE
instruction type.
ParserInterpreter.reduce(int, Sentence)
is called
when a reduction occurs.
Epsilon
implementation.REEpsilon
.
ExpressionTerminator
implementation.REExpressionTerminator
on the given
REGrammar
, allocated ID number, and the
RegularToken
to which this ExpressionTerminator
corresponds.
com.inxar.syntacs.translator.regexp
package used
during parsing.Interpreter
used in the translation of regular
expression strings.RegularGrammar
implementation.REGrammar
.
REGrammar
having the given ID.
REGrammar
having the given ID and name.
RegularExpression
interface is a base interface
for all specific RegularExpression
constructs.RegularGrammar
interface represents a factory for
generating regular expressions, typically for the purpose of
constructing RegularTokens
.RegularSet
interface is an optimized version of
the RegularGrammar
object generally used by
DFA
construction algorithms.Token
which is
specifically described using a RegularExpression
.Interval
implementation.REInterval
on the given
REGrammar
, lo and hi interval points, and the
assigned ID number.
Reiterator
interface abstracts traversal over a
list of nodes where each node has an int
key and a
IntSet
value.Option
implementation.REOption
on the given
REGrammar
and input
RegularExpression
.
PositiveClosure
implementation.REPositiveClosure
on the given
REGrammar
and input RegularExpression
.
TranslationComponent
in preparation for another
translation.
Input
position.
char
at the given
offset.
Union
implementation.REUnion
.
RuntimeTranslationException
is identical to
TranslationException
with the exception that is
extends RuntimeException
; it is acceptable to throw in
exceptional circumstances when it is necessary to throw a
TranslationException
during normal runtime, except of
course when an unexceptional TranslationException
is
appropriate (there are exceptions to that, however).RuntimeTranslationException
with the given
Auditor
.
RuntimeTranslationException
with the given
message and Auditor
.
RuntimeTranslationException
with the given
nested Throwable and Auditor
.
RuntimeTranslationException
with the given
nested Throwable and Auditor
.
On Computing
the Transitive Closure of a Relation" Acta Inf.- SCCTransitiveClosure.NonTrivialSCCException - exception com.inxar.syntacs.automaton.pushdown.SCCTransitiveClosure.NonTrivialSCCException.
-
- SCCTransitiveClosure(IntSet, IntRelation, IntRelation, IntRelation) -
Constructor for class com.inxar.syntacs.automaton.pushdown.SCCTransitiveClosure
- Constructs the
SCCTransitiveClosure
on the given
raw IntSet
of vertices, the
IntRelation
which implies the edges which connect
those vertices, the IntRelation
which holds the
IntSet
of values at each vertex, and the
IntRelation
where the output IntSet
of values should be put.
- SEMANTIC_ERROR -
Static variable in interface org.inxar.syntacs.translator.Complaint
- Type constant for a semantic error.
- SEMANTIC_WARNING -
Static variable in interface org.inxar.syntacs.translator.Complaint
- Type constant for a semantic warning.
- Sentence - interface org.inxar.syntacs.analyzer.syntactic.Sentence.
- The
Sentence
interface is essentially a view into the
top of the LR parse stack. - Session - interface org.inxar.syntacs.util.Session.
- The
Session
interface acts a central repository for
properties as well as a logging access. - set -
Variable in class com.inxar.syntacs.util.BubbleTree.Bubble
-
- set(int, char[], int, int) -
Method in class com.inxar.syntacs.util.Buffer
-
- set(int, int) -
Method in class com.inxar.syntacs.util.ArrayIntList
-
- set(int, IntSet) -
Method in interface org.inxar.syntacs.util.IntRelation
- Assigns the given set to the given key.
- set(int, IntSet) -
Method in class com.inxar.syntacs.util.HashBitSetIntRelation
-
- set(int, IntSet) -
Method in class com.inxar.syntacs.util.TreeListIntRelation
-
- set(int, String) -
Method in class com.inxar.syntacs.util.Buffer
-
- setAuditor(Auditor) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslationComponent
- Sets the current
Auditor
to the given instance.
- setAuditor(Auditor) -
Method in class com.inxar.syntacs.translator.lr.AbstractLRTranslationComponent
-
- setAuditor(Auditor) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
-
- setCharAt(int, char) -
Method in class com.inxar.syntacs.util.Buffer
-
- setContextPeek(String, String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the lexical context action to PEEK for the given context
and symbol.
- setContextPop(String, String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the lexical context action to POP for the given context
and symbol.
- setContextPush(String, String, String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the lexical context action to PUSH for the given context
and symbol.
- setGoalNonTerminal(String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the goal symbol to the nonterminal with the given name.
- setInput(Input) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslator
- Sets the
Input
instance.
- setInput(Input) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslationComponent
- Sets the current
Input
to the given instance.
- setInput(Input) -
Method in class com.inxar.syntacs.translator.lr.AbstractLRTranslationComponent
-
- setInput(Input) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
-
- setInput(Input) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslator
-
- setInput(Input) -
Method in class com.inxar.syntacs.translator.syntacs.SyntacsInterpreter
-
- setLexer(Lexer) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslator
- Sets the
Lexer
instance.
- setLexer(Lexer) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslator
-
- setLexerInterpreter(LexerInterpreter) -
Method in interface org.inxar.syntacs.analyzer.lexical.Lexer
- Sets the
Listener
to be notified of token
Symbol
events.
- setLexerInterpreter(LexerInterpreter) -
Method in class com.inxar.syntacs.analyzer.lexical.StandardLexer
-
- setLRTranslatorGrammar(LRTranslatorGrammar) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslator
- Sets the
LRTranslatorGrammar
instance.
- setLRTranslatorGrammar(LRTranslatorGrammar) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslationComponent
- Sets the current
LRTranslatorGrammar
to the given
instance.
- setLRTranslatorGrammar(LRTranslatorGrammar) -
Method in class com.inxar.syntacs.translator.lr.AbstractLRTranslationComponent
-
- setLRTranslatorGrammar(LRTranslatorGrammar) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslator
-
- setLRTranslatorInterpreter(LRTranslatorInterpreter) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslator
- Sets the
LRTranslatorInterpreter
instance.
- setLRTranslatorInterpreter(LRTranslatorInterpreter) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslator
-
- setName(String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the name of the grammar to the given
String
.
- setName(String) -
Method in interface org.inxar.syntacs.util.GraphViz
- The the name of the graph.
- setName(String) -
Method in class com.inxar.syntacs.util.Dot
-
- setParser(Parser) -
Method in interface org.inxar.syntacs.analyzer.lexical.LexerInterpreter
- Sets the
Parser
object to which this
LexerInterpreter
may relay Symbol events to.
- setParser(Parser) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslator
- Sets the
Parser
instance.
- setParser(Parser) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorInterpreter
-
- setParser(Parser) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslator
-
- setParserInterpreter(ParserInterpreter) -
Method in interface org.inxar.syntacs.analyzer.syntactic.Parser
- Sets the
ParserInterpreter
.
- setParserInterpreter(ParserInterpreter) -
Method in class com.inxar.syntacs.analyzer.syntactic.StandardParser
-
- SetProperties - class com.inxar.syntacs.util.SetProperties.
- The
SetProperties
class is a subclass of
java.util.Properties
which interprets multiple entries
having the same key as an array. - SetProperties() -
Constructor for class com.inxar.syntacs.util.SetProperties
-
- setProperties(Properties) -
Method in interface org.inxar.syntacs.translator.Auditor
- Sets the
Properties
instance.
- setProperties(Properties) -
Method in class com.inxar.syntacs.translator.StandardAuditor
-
- setProperties(Properties) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslator
- Sets the
Properties
instance.
- setProperties(Properties) -
Method in interface org.inxar.syntacs.translator.lr.LRTranslationComponent
- Sets the current
Properties
to the given instance.
- setProperties(Properties) -
Method in class com.inxar.syntacs.translator.lr.AbstractLRTranslationComponent
-
- setProperties(Properties) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslator
-
- SetProperties(Properties) -
Constructor for class com.inxar.syntacs.util.SetProperties
-
- SetProperties(SetProperties) -
Constructor for class com.inxar.syntacs.util.SetProperties
-
- SetProperties(String) -
Constructor for class com.inxar.syntacs.util.SetProperties
-
- setProperties(String, String[]) -
Method in class com.inxar.syntacs.util.SetProperties
-
- setProperty(String, String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the property with the given name to the given value.
- setRegexpType(int) -
Method in class com.inxar.syntacs.translator.regexp.Regexp
-
- setSource(String) -
Method in interface org.inxar.syntacs.translator.Auditor
- Sets the name of the input source.
- setSource(String) -
Method in class com.inxar.syntacs.translator.StandardAuditor
-
- setStartContext(String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the start context to the context with the given name.
- setStartProduction(Production) -
Method in interface org.inxar.syntacs.grammar.context_free.ContextFreeGrammar
- Sets the start production to the given production.
- setStartProduction(Production) -
Method in class com.inxar.syntacs.grammar.context_free.CFGrammar
-
- setSymbolType(int) -
Method in interface org.inxar.syntacs.analyzer.Symbol
- Sets the symbol type.
- setSymbolType(int) -
Method in class com.inxar.syntacs.analyzer.AbstractSymbol
-
- setSymbolType(int) -
Method in class com.inxar.syntacs.analyzer.StringSymbol
-
- setSymbolType(int) -
Method in class com.inxar.syntacs.translator.regexp.Regexp
-
- setTerminalRegexp(String, Object) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the regular expression for the terminal having the given
name.
- setVersion(String) -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Sets the version of the grammar to the given
String
.
- SHIFT -
Static variable in interface org.inxar.syntacs.automaton.pushdown.Action
- The
SHIFT
instruction type.
- SHIFT_REDUCE -
Static variable in class org.inxar.syntacs.automaton.pushdown.AmbiguityException
- Type of AmbiguityException to indicate a shift-reduce
conflict.
- SHIFT_SHIFT -
Static variable in class org.inxar.syntacs.automaton.pushdown.AmbiguityException
- Type of AmbiguityException to indicate a shift-shift
conflict.
- shift(int, int, int) -
Method in class com.inxar.syntacs.automaton.pushdown.ArrayDPAConstructor
-
- SingletonIntSet - class com.inxar.syntacs.util.SingletonIntSet.
- Concrete implementation of
IntSet
which may only hold a
single element. - SingletonIntSet(int) -
Constructor for class com.inxar.syntacs.util.SingletonIntSet
- Constructs the
SingletonIntSet
on the given singleton
value.
- size() -
Method in interface org.inxar.syntacs.util.IntSet
- Returns the number of members in this
IntSet
.
- size() -
Method in interface org.inxar.syntacs.util.IntStack
- Returns the depth of the stack.
- size() -
Method in class com.inxar.syntacs.util.ArrayIntStack
-
- size() -
Method in class com.inxar.syntacs.util.BitSetIntSet
-
- size() -
Method in class com.inxar.syntacs.util.EmptyIntSet
-
- size() -
Method in class com.inxar.syntacs.util.ImmutableIntSet
-
- size() -
Method in class com.inxar.syntacs.util.HashIntFunction
-
- size() -
Method in class com.inxar.syntacs.util.ListIntSet
-
- size() -
Method in class com.inxar.syntacs.util.SingletonIntSet
-
- spc() -
Method in interface org.inxar.syntacs.util.Channel
- Writes a single space.
- split(String) -
Static method in class com.inxar.syntacs.util.BurnTools
-
- StandardAction - class com.inxar.syntacs.automaton.pushdown.StandardAction.
- Standard implementation of
Action
. - StandardAction() -
Constructor for class com.inxar.syntacs.automaton.pushdown.StandardAction
- Constructs an error action with
id=0, value=0, type=ERROR
.
- StandardAction(int, int) -
Constructor for class com.inxar.syntacs.automaton.pushdown.StandardAction
- Creates a new
Action
with the given data.
- StandardAuditor - class com.inxar.syntacs.translator.StandardAuditor.
- Standard implementation of
Auditor
. - StandardAuditor.StandardComplaint - class com.inxar.syntacs.translator.StandardAuditor.StandardComplaint.
-
- StandardAuditor() -
Constructor for class com.inxar.syntacs.translator.StandardAuditor
-
- StandardInput - class com.inxar.syntacs.analyzer.StandardInput.
- Concrete implementation of Input which wraps a
java.io.Reader
. - StandardInput() -
Constructor for class com.inxar.syntacs.analyzer.StandardInput
- Constructs a new
StandardInput
instance.
- StandardLexer - class com.inxar.syntacs.analyzer.lexical.StandardLexer.
- Concrete
Lexer
implementation which uses a
DFA
for the recognition engine. - StandardLexer() -
Constructor for class com.inxar.syntacs.analyzer.lexical.StandardLexer
- Constructs the
StandardLexer
.
- StandardLRTranslator - class com.inxar.syntacs.translator.lr.StandardLRTranslator.
- Standard implementation of
LRTranslator
. - StandardLRTranslator() -
Constructor for class com.inxar.syntacs.translator.lr.StandardLRTranslator
-
- StandardLRTranslatorGrammar - class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar.
- This is a "mutable" implementation of
LRTranslatorGrammar
used by both the
SyntacsTranslator
and the
XML2LRTranslatorGrammarTransformer
when a grammar is
parsed into memory. - StandardLRTranslatorGrammar() -
Constructor for class com.inxar.syntacs.translator.lr.StandardLRTranslatorGrammar
- Constructs a new empty grammar.
- StandardLRTranslatorInterpreter - class com.inxar.syntacs.translator.lr.StandardLRTranslatorInterpreter.
- Concrete implementation of
LRInterpreter
. - StandardLRTranslatorInterpreter() -
Constructor for class com.inxar.syntacs.translator.lr.StandardLRTranslatorInterpreter
- Constructs the
StandardLRInterpreter
.
- StandardParser - class com.inxar.syntacs.analyzer.syntactic.StandardParser.
- Concrete implementation of
Parser
. - StandardParser() -
Constructor for class com.inxar.syntacs.analyzer.syntactic.StandardParser
-
- StandardRecovery - class com.inxar.syntacs.analyzer.syntactic.StandardRecovery.
- Concrete implementation of
Recovery
. - StandardRecovery() -
Constructor for class com.inxar.syntacs.analyzer.syntactic.StandardRecovery
-
- StandardSession - class com.inxar.syntacs.util.StandardSession.
- Standard implementation of
Session
. - StandardSession() -
Constructor for class com.inxar.syntacs.util.StandardSession
- Constructs the
Session
which writes to System.out
.
- StandardSession(Writer) -
Constructor for class com.inxar.syntacs.util.StandardSession
- Constructs the
Session
which writes to the given
Writer
.
- START_STATE -
Static variable in interface org.inxar.syntacs.automaton.finite.DFA
- Lexical analyzers or other tools should synchronize to the
START_STATE constant upon initialization.
- START_STATE -
Static variable in interface org.inxar.syntacs.automaton.pushdown.DPA
- Constant for the start state of a
DPA
.
- start() -
Method in interface org.inxar.syntacs.analyzer.lexical.Lexer
- Resets the internal state of the
Lexer
and
triggers the search for the next lexeme from the input.
- start() -
Method in class com.inxar.syntacs.analyzer.lexical.StandardLexer
-
- STOP -
Static variable in interface org.inxar.syntacs.grammar.Token
- This is the universal token type for the
STOP
symbol.
- stop() -
Method in interface org.inxar.syntacs.analyzer.lexical.Lexer
- Pauses the lexing process.
- stop() -
Method in interface org.inxar.syntacs.analyzer.lexical.LexerInterpreter
- Notify that the end of the
Input
has been reached.
- stop() -
Method in class com.inxar.syntacs.analyzer.lexical.StandardLexer
-
- stop() -
Method in class com.inxar.syntacs.translator.lr.StandardLRTranslatorInterpreter
-
- store(OutputStream, String) -
Method in class com.inxar.syntacs.util.SetProperties
-
- stretch(int, int) -
Method in interface org.inxar.syntacs.analyzer.Input
- "Return chars as String": fetches the stretch of characters
from offset to length as a new string.
- stretch(int, int) -
Method in class com.inxar.syntacs.analyzer.StandardInput
-
- StringSymbol - class com.inxar.syntacs.analyzer.StringSymbol.
- Concrete implementation of
Symbol
which internally
contains a String. - StringSymbol(int, String) -
Constructor for class com.inxar.syntacs.analyzer.StringSymbol
- Constructs the
StringSymbol
with the given
type and String
value.
- StringSymbol(String) -
Constructor for class com.inxar.syntacs.analyzer.StringSymbol
- Constructs the
StringSymbol
with the given
String
value.
- StringTools - class com.inxar.syntacs.util.StringTools.
- A collection of utilities for working with text and strings.
- stripe(char, int) -
Method in interface org.inxar.syntacs.util.Channel
- Writes the given
char
n
number of
times.
- subgraph(String) -
Method in interface org.inxar.syntacs.util.GraphViz
- Adds a new subgraph to the graph and returns it to the caller
for further refinement.
- subgraph(String) -
Method in class com.inxar.syntacs.util.Dot
-
- substr(String, int) -
Static method in class com.inxar.syntacs.util.StringTools
-
- Symbol - interface org.inxar.syntacs.analyzer.Symbol.
Symbol
is an abstraction of either a terminal or a
nonterminal.- SyntacsGrammar - class com.inxar.syntacs.translator.syntacs.SyntacsGrammar.
- Automatically generated by Syntacs
Translation Toolkit on Fri Jul 06 12:05:11 PDT 2001
- SyntacsGrammar() -
Constructor for class com.inxar.syntacs.translator.syntacs.SyntacsGrammar
-
- SyntacsInterpreter - class com.inxar.syntacs.translator.syntacs.SyntacsInterpreter.
Interpreter
used in the translation of newtacs grammar
files (.stt).- SyntacsInterpreter() -
Constructor for class com.inxar.syntacs.translator.syntacs.SyntacsInterpreter
-
- SYNTACTIC_ERROR -
Static variable in interface org.inxar.syntacs.translator.Complaint
- Type constant for a syntactic error.
Terminal
interface abstracts objects which act as
concrete symbols in a context free language, typically as a
Token
.Terminal
s in the grammar.
Test
is the command-line interface to execute a set of
test translations.time()
method is functionally similar to the
out()
method; the contents of the buffer are
flushed to the parent Log
.
IntArray
.
Token
is the compile-time abstraction between
different syntax analysis stages in a front end of a compiler,
typically the Lexer
Parser
interface.RegularSet
.
Tree
.
touch()
method is useful for stopping a timed
Channel but not writing anything to it.
Channel
.
Object
into a
DFA
.
DFA
.
Object
to a
DPA
.
DPA
.
Object
to some other
Object
representation.
TranslationException
is a carrier for errors
discovered during a translation run.TranslationException
with the given
Auditor
.
TranslationException
with the given
message and Auditor
.
TranslationException
with the given
nested Throwable and Auditor
.
TranslationException
with the given
nested Throwable and Auditor
.
Translator
is an object capable if transforming a
stream of characters into an Object
.TranslatorGrammar
interface describes the symbolic
components of a grammar as well as acting as a factory for
Translator
instances.Tree
which tries to do
more advanced tree layout.DFATransformer
implementation which converts
a TreeDFA
into a MesoArrayDFA
.Tree2MesoArrayDFATransformer
.
DFA
implementation which uses tree-based
parse tables.TreeDFA.Edge
class is models a single edge as
a node in an binary interval tree.TreeDFA.State
class is models a single state
as tuple (output, edge_tree)
where
output
is an integer which records the accepting
NFA state and edge_tree
holds the outgoing edges
of the state tree.State
on the given
Edge
tree and int
output.
TreeDFA
from the given
State
table.
DFAConstructor
which builds
a TreeDFA
.IntRelation
which uses
as a binary tree such that ListIntSet
instances are
implicitly created at each tree node.TreeListIntRelation
.
Union
interface is an abstraction over the
RegularExpression
alternation object classically known
syntactically by the pipe '|'.IntSet
are added
to this IntSet
.
String
into a 1-dimensional array of
int
that was previously pickled.
String[]
array into a 1-dimensional
array of int
that was previously pickled.
String
into a 2-dimensional array of
int
that was previously pickled.
String[]
array into a 2-dimensional
array of int
that was previously pickled.
String
into a 3-dimensional array of
int
that was previously pickled.
String[]
array into a 3-dimensional
array of int
that was previously pickled.
Symbol
represented as an
Object
.
Symbol
represented as an
String
.
char
value of the symbol Symbol
.
VizController
is centrally responsible for
overseeing and coordinating the generation of GraphViz dot files
for various objects.Vizualizable
instances are capable of rendering their
state as a graphviz dot
file which can subsequently be converted to postscript (among other
formats).Channel
.
boolean
.
char
.
int
.
Object
.
String
.
XML2RegexpTransformer
is a tool for parsing an XML
trees representing regular expressions and generating Regexp
objects from them.XML2RegexpTransformer
.
XML2TreeDFATransformer
is a tool for parsing an XML
elements representing dfa state machines and generating a
TreeDFA
.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |