A B C D E F G H I L M N O P R S T V

A

accepts(Token) - Method in class org.sc3d.apt.sss.v3.Grammar.Keyword
Returns 'true' if 't' is of type 'Token.TYPE_WORD' and its text is an exact match for 'text'.
accepts(Token) - Method in class org.sc3d.apt.sss.v3.Grammar.Terminal
Returns 'true' if 't' is the right kind of Token for this Terminal.
add(NDFA.Transition) - Method in class org.sc3d.apt.sss.v3.NDFA.State
Adds an outgoing Transition to this State.
addError(String, int, int) - Method in class org.sc3d.apt.sss.v3.Sentence
Attaches an error message to part of this Sentence.
addError(String) - Method in class org.sc3d.apt.sss.v3.Token
Attaches an error message to this Token.
addErrorAtEnd(String) - Method in class org.sc3d.apt.sss.v3.Sentence
Equivalent to 'addError(message, length, 0).
addIndentationError(String, int) - Method in class org.sc3d.apt.sss.v3.Indentation
Attaches an error message to 'sentence' about the indentation at the beginning of line 'line'.
append(int) - Method in class org.sc3d.apt.sss.v3.IntBuffer
Appends 'n' to this IntBuffer.
append(Token) - Method in class org.sc3d.apt.sss.v3.TokenBuffer
Appends 't' to this TokenBuffer.

B

Bracket - Class in org.sc3d.apt.sss.v3
A subclass of Token that represents a string of zero or more Tokens enclosed in brackets.
Bracket(Sentence, Token, Token[], Token) - Constructor for class org.sc3d.apt.sss.v3.Bracket
Constructs a Bracket.

C

Calculator - Class in org.sc3d.apt.sss.v3
This class is a worked example of how to use SSS in general, and the tools provided in this Java package in particular.
Calculator() - Constructor for class org.sc3d.apt.sss.v3.Calculator
Constructs a Calculator.
Calculator.Expression - Class in org.sc3d.apt.sss.v3
The data structure that represents an arithmetic expression.
Calculator.Expression() - Constructor for class org.sc3d.apt.sss.v3.Calculator.Expression
 
Calculator.Negation - Class in org.sc3d.apt.sss.v3
An Expression whose outermost operator is a negation.
Calculator.Negation(Calculator.Expression) - Constructor for class org.sc3d.apt.sss.v3.Calculator.Negation
Constructs the negation of 'e'.
Calculator.Number - Class in org.sc3d.apt.sss.v3
An Expression that consists only of a number.
Calculator.Number(BigInteger) - Constructor for class org.sc3d.apt.sss.v3.Calculator.Number
Constructs a Number.
Calculator.Operation - Class in org.sc3d.apt.sss.v3
An Expression whose outermost operator is an addition, subtraction, multiplication of division.
Calculator.Operation(Calculator.Expression, Calculator.Expression, String) - Constructor for class org.sc3d.apt.sss.v3.Calculator.Operation
Constructs an Operation, given values for its fields.
closing - Variable in class org.sc3d.apt.sss.v3.Bracket
One of the bracket Tokens passed to the constructor.
count() - Method in class org.sc3d.apt.sss.v3.NDFA.State
Returns the number of outgoing Transitions added to far.
countErrors() - Method in class org.sc3d.apt.sss.v3.Sentence
Returns the number of errors attached to this Sentence.

D

DECLARATION - Static variable in class org.sc3d.apt.sss.v3.GrammarParser
A Grammar which represents what the specification of SSS grammars calls a 'declaration'.
DECLARATION_PLUS - Static variable in class org.sc3d.apt.sss.v3.GrammarParser
A Grammar which represents what the specification of SSS grammars calls a 'declaration+'.

E

e - Variable in class org.sc3d.apt.sss.v3.Calculator.Negation
The Expression of which this is the Negation.
e1 - Variable in class org.sc3d.apt.sss.v3.Calculator.Operation
One of the operands.
e2 - Variable in class org.sc3d.apt.sss.v3.Calculator.Operation
One of the operands.
equals(Object) - Method in class org.sc3d.apt.sss.v3.Token
Returns 'true' only if 'that' is a non-null Token whose 'toString()' method returns a String equal to 'this.toString()'.
Escape - Class in org.sc3d.apt.sss.v3
Represents an escape sequence in a literal string or literal character.
Escape(Sentence, int, int, int, boolean) - Constructor for class org.sc3d.apt.sss.v3.Escape
Constructs an Escape given values for its fields.
evaluate(Sentence) - Method in class org.sc3d.apt.sss.v3.Calculator
Evaluates an arithmetic expression.
evaluate() - Method in class org.sc3d.apt.sss.v3.Calculator.Expression
Calculates and returns the value of this Expression.
evaluate() - Method in class org.sc3d.apt.sss.v3.Calculator.Negation
Returns the negation of 'e.evaluate()'.
evaluate() - Method in class org.sc3d.apt.sss.v3.Calculator.Number
Returns 'n'.
evaluate() - Method in class org.sc3d.apt.sss.v3.Calculator.Operation
Evaluates the operands and performs the operation.
exponentLength - Variable in class org.sc3d.apt.sss.v3.SSSNumber
The number of characters occupied by the optional exponent part of this SSSNumber, if present, or '0', if absent.

F

finalState - Variable in class org.sc3d.apt.sss.v3.NDFA
The final State of this NDFA.
fractionLength - Variable in class org.sc3d.apt.sss.v3.SSSNumber
The number of characters occupied by the optional fractional part of this SSSNumber, if present, or '0', if absent.
fromFile(String) - Static method in class org.sc3d.apt.sss.v3.GrammarParser
Reads the named file, parses it, and returns a Grammar, or dies trying.
fromInputStream(InputStream) - Static method in class org.sc3d.apt.sss.v3.GrammarParser
Reads a string of bytes from 'in', converts it to characters, parses it, and returns a Grammar, or dies trying.
fromString(String) - Static method in class org.sc3d.apt.sss.v3.GrammarParser
Parses 'grammar' and returns a Grammar, or dies trying.

G

g - Variable in class org.sc3d.apt.sss.v3.NDFA.Transition
A Grammar describing the Tree that is constructed by following this Transition, or 'null'.
get(int) - Method in class org.sc3d.apt.sss.v3.Bracket
Returns the Token with index 'index' inside this Bracket.
get(int) - Method in class org.sc3d.apt.sss.v3.Grammar.NonTerminal
Returns the Production with index 'index'.
get(int) - Method in class org.sc3d.apt.sss.v3.Grammar.Production
Returns the part with index 'index'.
get(int) - Method in class org.sc3d.apt.sss.v3.NDFA.State
Returns the outgoing Transition with index 'index'.
get(int) - Method in class org.sc3d.apt.sss.v3.Sentence
Returns the character at 'index'.
get(int) - Method in class org.sc3d.apt.sss.v3.TokenBuffer
Returns the Token at index 'index' in this TokenBuffer.
get(int) - Method in class org.sc3d.apt.sss.v3.Tree.NonTerminal
Returns the parse-tree of the repeat with index 'index'.
get() - Method in class org.sc3d.apt.sss.v3.Tree.NonTerminal
Returns 'get(0)', or 'null' if 'length' is zero.
get(int) - Method in class org.sc3d.apt.sss.v3.Tree.Production
Returns the part with index 'index'.
getBase() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns the base character of this SSSNumber.
getExponentDigits() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns the digits of the exponent part of this SSSNumber.
getFractionDigits() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns the digits of the fractional part of this SSSNumber.
getGrammarOfContents() - Method in class org.sc3d.apt.sss.v3.Grammar.Terminal
If this Terminal is of type 'TYPE_BRACKET', 'TYPE_SQUARE' or 'TYPE_BRACE', override this method so that it returns the Grammar that should be used to parse the contents of any brackets that are accepted by this Terminal.
getIntegerDigits() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns the digits of the integer part of this SSSNumber.
getLineDepth(int) - Method in class org.sc3d.apt.sss.v3.Indentation
Returns the nesting depth of a line.
getLineIndentation(int) - Method in class org.sc3d.apt.sss.v3.Indentation
Returns the indentation of a line.
getLineStart(int) - Method in class org.sc3d.apt.sss.v3.Indentation
Returns the index into 'sentence' of the first character of a line.
getMantissa() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns the concatenation of the integer and fraction digits.
getNT(int) - Method in class org.sc3d.apt.sss.v3.Tree.Production
Returns '(NonTerminal)get(index)'.
getP(int) - Method in class org.sc3d.apt.sss.v3.Tree.Production
Returns '(Production)getNT(index).get()'.
getRadix() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns '2', '4', '8', '10' or '16' depending on the base in which this number is written.
getShift() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns the exponent minus the number of fractional digits.
getString(int, int) - Method in class org.sc3d.apt.sss.v3.Sentence
Returns part of this Sentence as a String.
getT(int) - Method in class org.sc3d.apt.sss.v3.Tree.Production
Returns '(Terminal)get(index)'.
getToken(int) - Method in class org.sc3d.apt.sss.v3.Lex
Returns one of the lexographic Tokens.
getToken(int) - Method in class org.sc3d.apt.sss.v3.Match
Returns the Token with index 'index'.
Grammar - Class in org.sc3d.apt.sss.v3
Represents an SSS grammar.
GRAMMAR - Static variable in class org.sc3d.apt.sss.v3.GrammarParser
A Grammar which represents what the specification of SSS grammars calls a 'grammar'.
Grammar.Keyword - Class in org.sc3d.apt.sss.v3
A subclass of Terminal which insists on an exact text match with a Token of type 'Token.TYPE_WORD'.
Grammar.Keyword(String) - Constructor for class org.sc3d.apt.sss.v3.Grammar.Keyword
Constructs a Keyword.
Grammar.NonTerminal - Class in org.sc3d.apt.sss.v3
The subclass of Grammar with 'isTerminal==false'.
Grammar.NonTerminal(Grammar.Production[], boolean, boolean) - Constructor for class org.sc3d.apt.sss.v3.Grammar.NonTerminal
Constructs a NonTerminal.
Grammar.NonTerminal(Grammar.NonTerminal, boolean, boolean) - Constructor for class org.sc3d.apt.sss.v3.Grammar.NonTerminal
Constructs a NonTerminal with the same productions as 'that' but different flags.
Grammar.Production - Class in org.sc3d.apt.sss.v3
Represents a production of the grammar.
Grammar.Production(String, Grammar[]) - Constructor for class org.sc3d.apt.sss.v3.Grammar.Production
Constructs a Production.
Grammar.Terminal - Class in org.sc3d.apt.sss.v3
The subclass of Grammar with 'isTerminal==true'.
Grammar.Terminal(int) - Constructor for class org.sc3d.apt.sss.v3.Grammar.Terminal
Constructs a Terminal which matches a single Token of type 'type'.
GRAMMAR_PLUS - Static variable in class org.sc3d.apt.sss.v3.GrammarParser
A Grammar which represents what the specification of SSS grammars calls a 'grammar+'.
GrammarParser - Class in org.sc3d.apt.sss.v3
A subclass of Parser which parses SSS grammar specifications.

H

hashCode() - Method in class org.sc3d.apt.sss.v3.Token
Returns 'this.toString().hashCode()'.

I

Indentation - Class in org.sc3d.apt.sss.v3
Represents an indentation analysis of a Sentence.
Indentation(Lex) - Constructor for class org.sc3d.apt.sss.v3.Indentation
Constructs an Indentation analysis of 'lex.sentence', and annotates 'lex.sentence' with error messages if the indentation rules are not obeyed.
initialState - Variable in class org.sc3d.apt.sss.v3.NDFA
The initial State of this NDFA.
IntBuffer - Class in org.sc3d.apt.sss.v3
Represents an auto-extending buffer for integers.
IntBuffer() - Constructor for class org.sc3d.apt.sss.v3.IntBuffer
Constructs an empty IntBuffer.
integerLength - Variable in class org.sc3d.apt.sss.v3.SSSNumber
The number of characters occupied by the integer part of this SSSNumber.
interactiveTest() - Method in class org.sc3d.apt.sss.v3.Parser
Prompts for input on 'System.in', parses it, and prints the parse-tree.
isExponentNegative() - Method in class org.sc3d.apt.sss.v3.SSSNumber
Returns 'true' if the exponent part is present and includes the optional '-' sign.
isOkay - Variable in class org.sc3d.apt.sss.v3.Escape
'true' if this Escape represents a syntactically correct escape sequence, otherwise 'false'.
isOkay - Variable in class org.sc3d.apt.sss.v3.SSSChar
'true' if this literal character is syntactically correct, otherwise 'false'.
isOptional - Variable in class org.sc3d.apt.sss.v3.Grammar.NonTerminal
One of the flags passed to the constructor.
isRepeatable - Variable in class org.sc3d.apt.sss.v3.Grammar.NonTerminal
One of the flags passed to the constructor.
isTerminal - Variable in class org.sc3d.apt.sss.v3.Grammar
'true' if this Grammar is an instance of Terminal, otherwise 'false'.
isTerminal - Variable in class org.sc3d.apt.sss.v3.Tree
'true' if this Tree is a single Token corresponding to a Terminal of the grammar, otherwise 'false'.

L

length - Variable in class org.sc3d.apt.sss.v3.Bracket
The number of Tokens nested inside this Bracket.
length - Variable in class org.sc3d.apt.sss.v3.Escape
The number of characters that make up this Escape.
length - Variable in class org.sc3d.apt.sss.v3.Sentence
The number of characters in this Sentence.
length - Variable in class org.sc3d.apt.sss.v3.Token
The length of this Token in characters.
length() - Method in class org.sc3d.apt.sss.v3.TokenBuffer
Returns the number of Tokens in this TokenBuffer.
length - Variable in class org.sc3d.apt.sss.v3.Tree.NonTerminal
The number of repeats that the parser found.
lex(Sentence, int) - Static method in class org.sc3d.apt.sss.v3.Escape
Lexes an Escape in the middle of 'sentence' starting at 'start'.
Lex - Class in org.sc3d.apt.sss.v3
Represents a lexical analysis of a Sentence.
Lex(Sentence) - Constructor for class org.sc3d.apt.sss.v3.Lex
Constructs a Lex representing the lexical structure of 'sentence'.
lex(Sentence, int) - Static method in class org.sc3d.apt.sss.v3.SSSChar
Lexes a single SSSChar from 'sentence' starting at 'start'.
lex(Sentence, int) - Static method in class org.sc3d.apt.sss.v3.SSSNumber
Constructs an SSSNumber by reading from the middle of a Sentence.
lex(Sentence, int) - Static method in class org.sc3d.apt.sss.v3.SSSString
Constructs an SSSString by reading from the middle of a Sentence.

M

main(String[]) - Static method in class org.sc3d.apt.sss.v3.Calculator
Repeatedly accepts an arithmetic expression from the console and evaluates it.
main(String[]) - Static method in class org.sc3d.apt.sss.v3.Escape
 
main(String[]) - Static method in class org.sc3d.apt.sss.v3.GrammarParser
Takes one argument: a filename.
main(String[]) - Static method in class org.sc3d.apt.sss.v3.Indentation
Takes one argument: a filename.
main(String[]) - Static method in class org.sc3d.apt.sss.v3.Lex
Takes one argument: a filename.
main(String[]) - Static method in class org.sc3d.apt.sss.v3.Match
Takes one argument: a filename.
main(String[]) - Static method in class org.sc3d.apt.sss.v3.Sentence
Takes one argument: a filename.
main(String[]) - Static method in class org.sc3d.apt.sss.v3.SSSChar
 
main(String[]) - Static method in class org.sc3d.apt.sss.v3.SSSString
 
main(String[]) - Static method in class org.sc3d.apt.sss.v3.Validator
First argument is the filename of the grammar specification.
make(Lex) - Static method in class org.sc3d.apt.sss.v3.Match
Tries to construct and return a Match for 'lex.sentence'.
make(NDFA.State, NDFA.State, Grammar) - Static method in class org.sc3d.apt.sss.v3.NDFA
Constructs and returns an NDFA representing 'grammar'.
makeProduction(NDFA.State, NDFA.State, Grammar.Production) - Static method in class org.sc3d.apt.sss.v3.NDFA
Constructs and returns an NDFA representing 'production'.
Match - Class in org.sc3d.apt.sss.v3
Represents a bracket matching analysis of a Sentence.
matches(Token, Token) - Static method in class org.sc3d.apt.sss.v3.Bracket
Returns 'true' if 'opening' is an open round bracket and 'closing' is a close round bracket, or if 'opening' is an open square bracket and 'closing' is a close square bracket, or if 'opening' is an open brace and 'closing' is a close brace.

N

n - Variable in class org.sc3d.apt.sss.v3.Calculator.Number
The number.
name - Variable in class org.sc3d.apt.sss.v3.Grammar.Production
The name of this Production.
name - Variable in class org.sc3d.apt.sss.v3.Tree.Production
The name of the Grammar.Production that was used.
NDFA - Class in org.sc3d.apt.sss.v3
Represents a non-determinstic finite automaton for parsing a particular grammar.
NDFA(NDFA.State, NDFA.State) - Constructor for class org.sc3d.apt.sss.v3.NDFA
Constructs an NDFA, given its initial and final States.
ndfa - Variable in class org.sc3d.apt.sss.v3.NDFA.Transition
An NDFA describing the grammar of the contents of the bracket, if this is a 'bracket shift' Transition and its NDFA has already been calculated, or 'null' if this is not a 'bracket shift' Transition or the value has not yet been calculated.
ndfa - Variable in class org.sc3d.apt.sss.v3.Parser
An NDFA that represents the grammar passed to the constructor and used by 'parse()'.
NDFA.State - Class in org.sc3d.apt.sss.v3
Represents a state of an NDFA.
NDFA.State() - Constructor for class org.sc3d.apt.sss.v3.NDFA.State
Constructs a State with no outgoing Transitions.
NDFA.Transition - Class in org.sc3d.apt.sss.v3
Represents a transition of an NDFA.
NDFA.Transition(NDFA.State) - Constructor for class org.sc3d.apt.sss.v3.NDFA.Transition
Constructs a 'no-op' Transition, given values for its non-null fields.
NDFA.Transition(NDFA.State, Grammar.Terminal) - Constructor for class org.sc3d.apt.sss.v3.NDFA.Transition
Constructs a 'shift' Transition (bracket or otherwise), given values for its non-null fields.
NDFA.Transition(NDFA.State, Grammar.NonTerminal) - Constructor for class org.sc3d.apt.sss.v3.NDFA.Transition
Constructs an 'open' Transition, given values for its non-null fields.
NDFA.Transition(NDFA.State, Grammar.Production) - Constructor for class org.sc3d.apt.sss.v3.NDFA.Transition
Constructs a 'reduce' Transition, given values for its non-null fields.
numLines - Variable in class org.sc3d.apt.sss.v3.Indentation
The number of lines in 'sentence' to which the indentation rules apply.
numParts - Variable in class org.sc3d.apt.sss.v3.Grammar.Production
The number of parts.
numParts - Variable in class org.sc3d.apt.sss.v3.Tree.Production
The number of parts.
numProds - Variable in class org.sc3d.apt.sss.v3.Grammar.NonTerminal
The number of Productions.
numTokens - Variable in class org.sc3d.apt.sss.v3.Lex
The number of lexographic Tokens found in 'sentence'.
numTokens - Variable in class org.sc3d.apt.sss.v3.Match
The number of Tokens in 'sentence', after all Tokens inside brackets have been grouped into instances of Bracket.

O

opening - Variable in class org.sc3d.apt.sss.v3.Bracket
One of the bracket Tokens passed to the constructor.
operator - Variable in class org.sc3d.apt.sss.v3.Calculator.Operation
"+", "-", "*" or "/".
org.sc3d.apt.sss.v3 - package org.sc3d.apt.sss.v3
This package provides tools and data structures for manipulating data stored in SSS formats.

P

p - Variable in class org.sc3d.apt.sss.v3.NDFA.Transition
A Grammar.Production to apply when following this 'reduce' Transition, or 'null' if this is not a 'reduce' Transition.
parse(Sentence) - Method in class org.sc3d.apt.sss.v3.Parser
Parses 'sentence' and returns the result of applying 'postProcess()' to its parse-tree.
parse() - Method in class org.sc3d.apt.sss.v3.Tree.Terminal
If this Terminal represents a bracket, parses the contents and returns the parse-tree.
PARSER - Static variable in class org.sc3d.apt.sss.v3.GrammarParser
A GrammarParser.
Parser - Class in org.sc3d.apt.sss.v3
Represents a parser for a particular Grammar.
Parser(Grammar) - Constructor for class org.sc3d.apt.sss.v3.Parser
Constructs a Parser for 'grammar'.
parseTokens(NDFA, Token[], Token) - Method in class org.sc3d.apt.sss.v3.Parser
Parses 'tokens' according to 'ndfa' and returns its parse-tree.
postProcess(Tree) - Method in class org.sc3d.apt.sss.v3.Calculator
Returns an Expression, given a Tree representing a parse-tree obeying 'Grammar.SUM'.
postProcess(Tree) - Method in class org.sc3d.apt.sss.v3.GrammarParser
Parses the contents of all brackets in the grammar file, and returns the Grammar specified by the 'ROOT' declaration.
postProcess(Tree) - Method in class org.sc3d.apt.sss.v3.Parser
Subclasses which are specialised for a paticular Grammar can override this method in order to post-process the parse-tree.
postProcess(Tree) - Method in class org.sc3d.apt.sss.v3.Validator
Descends into all brackets to make sure everything gets parsed.
postProcessExpression(Tree.Production) - Method in class org.sc3d.apt.sss.v3.Calculator
Converts a Tree representing the parse-tree of an 'atom', 'product' or 'sum' into an Expression.
printErrorReport(PrintStream, int) - Method in class org.sc3d.apt.sss.v3.Sentence
Prints an error report to 'out'.
PRODUCTION - Static variable in class org.sc3d.apt.sss.v3.GrammarParser
A Grammar which represents what the specification of SSS grammars calls a 'production'.
PRODUCTION_PLUS - Static variable in class org.sc3d.apt.sss.v3.GrammarParser
A Grammar which represents what the specification of SSS grammars calls a 'production+'.

R

readFile(String) - Static method in class org.sc3d.apt.sss.v3.Sentence
Reads the named file and returns it as a Sentence.

S

sentence - Variable in class org.sc3d.apt.sss.v3.Escape
The Sentence in which this Escape was found.
sentence - Variable in class org.sc3d.apt.sss.v3.Indentation
The Sentence of which this is the indentation analysis.
sentence - Variable in class org.sc3d.apt.sss.v3.Lex
The Sentence of which this is the lexical analysis.
sentence - Variable in class org.sc3d.apt.sss.v3.Match
The sentence of which this is a bracket matching analysis.
Sentence - Class in org.sc3d.apt.sss.v3
Represents a sequence of characters that need to be parsed, and allows error messages to be attached to it.
Sentence(char[]) - Constructor for class org.sc3d.apt.sss.v3.Sentence
Constructs a Sentence given an array of characters.
sentence - Variable in class org.sc3d.apt.sss.v3.Token
The Sentence of which this Token is part.
SSSChar - Class in org.sc3d.apt.sss.v3
A subclass of Token that represents a literal character.
SSSChar(Sentence, int, int, int, boolean) - Constructor for class org.sc3d.apt.sss.v3.SSSChar
Constructs an SSSChar given values for its fields.
SSSNumber - Class in org.sc3d.apt.sss.v3
A subclass of Token that represents an SSS number, or any prefix thereof.
SSSNumber(Sentence, int, int, int, int) - Constructor for class org.sc3d.apt.sss.v3.SSSNumber
Constructs an SSSNumber, given values for its fields.
SSSString - Class in org.sc3d.apt.sss.v3
A subclass of Token that represents a literal String.
SSSString(Sentence, int, int, String) - Constructor for class org.sc3d.apt.sss.v3.SSSString
Constructs an SSSString, given values for its fields.
start - Variable in class org.sc3d.apt.sss.v3.Escape
The index of the character in 'sentence' at which this Escape starts.
start - Variable in class org.sc3d.apt.sss.v3.Token
The index into 'sentence' of the character at which this Token starts.
SUM - Static variable in class org.sc3d.apt.sss.v3.Calculator
The grammar of arithmetic expressions that this calculator accepts.

T

t - Variable in class org.sc3d.apt.sss.v3.Tree.Terminal
The Token that the parser found.
text - Variable in class org.sc3d.apt.sss.v3.Grammar.Keyword
The exact text to match.
to - Variable in class org.sc3d.apt.sss.v3.NDFA.Transition
The State to which this Transition leads.
toArray() - Method in class org.sc3d.apt.sss.v3.Bracket
Returns the Tokens inside this Bracket in a fresh array.
toArray() - Method in class org.sc3d.apt.sss.v3.IntBuffer
Returns the contens of this IntBuffer in a fresh array.
toArray() - Method in class org.sc3d.apt.sss.v3.Match
Returns all the Tokens in a fresh array of length 'numTokens'.
toArray() - Method in class org.sc3d.apt.sss.v3.NDFA.State
Returns all the Transitions from this State in order of preference in a fresh array.
toArray() - Method in class org.sc3d.apt.sss.v3.TokenBuffer
Returns the contents of this TokenBuffer in a fresh array of length 'length()'.
Token - Class in org.sc3d.apt.sss.v3
Represents a part of a Sentence that has some sort of syntactic significance.
Token(int, Sentence, int, int) - Constructor for class org.sc3d.apt.sss.v3.Token
Constructs a Token.
TokenBuffer - Class in org.sc3d.apt.sss.v3
An extensible buffer for Tokens.
TokenBuffer() - Constructor for class org.sc3d.apt.sss.v3.TokenBuffer
Constructs an empty TokenBuffer.
toString() - Method in class org.sc3d.apt.sss.v3.Escape
 
toString() - Method in class org.sc3d.apt.sss.v3.Grammar.Keyword
Returns 'text' enclosed in double quotes.
toString() - Method in class org.sc3d.apt.sss.v3.Grammar.NonTerminal
Returns a String representation of this NonTerminal.
toString() - Method in class org.sc3d.apt.sss.v3.Grammar.Production
Returns a String representation of this Production.
toString() - Method in class org.sc3d.apt.sss.v3.Grammar.Terminal
Returns a String representation of this Terminal.
toString() - Method in class org.sc3d.apt.sss.v3.Grammar
Returns a String representation of this Grammar.
toString() - Method in class org.sc3d.apt.sss.v3.NDFA
Returns a String representation of this NDFA, including all States reachable from 'this.initialState'.
toString() - Method in class org.sc3d.apt.sss.v3.NDFA.Transition
Returns a brief decription of this Transition.
toString() - Method in class org.sc3d.apt.sss.v3.Token
Returns the characters that make up this Token.
toString() - Method in class org.sc3d.apt.sss.v3.TokenBuffer
Returns a String representation of this TokenBuffer including its contents.
toString() - Method in class org.sc3d.apt.sss.v3.Tree.Production
Returns a String representation of this Production.
toString() - Method in class org.sc3d.apt.sss.v3.Tree
Returns a String representation of this Tree.
Tree - Class in org.sc3d.apt.sss.v3
Represents the parse-tree of a Sentence.
Tree.NonTerminal - Class in org.sc3d.apt.sss.v3
The subclass of Tree with 'isTerminal==false', which represents zero or more parse-trees all matching the same non-terminal of the grammar.
Tree.NonTerminal(Tree.Production[]) - Constructor for class org.sc3d.apt.sss.v3.Tree.NonTerminal
Constructs a NonTerminal.
Tree.Production - Class in org.sc3d.apt.sss.v3
Represents something constructed using a Grammar.Production from a sequence of smaller things.
Tree.Production(String, Tree[]) - Constructor for class org.sc3d.apt.sss.v3.Tree.Production
Constructs a Production.
Tree.Terminal - Class in org.sc3d.apt.sss.v3
The subclass of Tree with 'isTerminal==true', which represents a single Token.
Tree.Terminal(Token) - Constructor for class org.sc3d.apt.sss.v3.Tree.Terminal
Constructs a Terminal.
type - Variable in class org.sc3d.apt.sss.v3.Grammar.Terminal
The type of Tokens matched by this Terminal (one of the 'Token.TYPE_XXX' values).
type - Variable in class org.sc3d.apt.sss.v3.Token
The type of this Token (one of the 'TYPE_XXX' values).
TYPE_BRACE - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents a string of Tokens inside braces (curly brackets).
TYPE_CHAR - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents an SSS literal character.
TYPE_COMMENT - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents an SSS comment.
TYPE_CONSTANT - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents an SSS constant.
TYPE_IDENTIFIER - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents an SSS identifier.
TYPE_NUMBER - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents an SSS literal number.
TYPE_ROUND - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents a string of Tokens inside round brackets.
TYPE_SQUARE - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents a string of Tokens inside square brackets.
TYPE_STRING - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents an SSS literal string.
TYPE_WORD - Static variable in class org.sc3d.apt.sss.v3.Token
The value of the 'type' field for a Token that represents an SSS keyword, separator character, or punctuation string.

V

Validator - Class in org.sc3d.apt.sss.v3
A tool for checking that SSS files obey a grammar.
value - Variable in class org.sc3d.apt.sss.v3.Escape
The character code represented by this Escape.
value - Variable in class org.sc3d.apt.sss.v3.SSSChar
The unicode character value of this literal character.
value - Variable in class org.sc3d.apt.sss.v3.SSSString
The value of this SSSString, or 'null' if the string literal was not syntactically correct.

A B C D E F G H I L M N O P R S T V