Building Parsers with Java
A B C D E F G H I J K L M N O P Q R S T U V W X Y

T

T - class sjm.examples.sling.T.
This class represents time, which the Sling environment defines to vary from 0 to 1 as a plot unfolds.
T() - Constructor for class sjm.examples.sling.T
 
tail - Variable in class sjm.engine.DynamicRule
 
tail() - Method in class sjm.engine.DynamicRule
Returns the series of structures after the head.
Tan - class sjm.examples.sling.Tan.
This class wraps a tan function around another source function.
Tan() - Constructor for class sjm.examples.sling.Tan
Constructs tan(t).
Tan(SlingFunction) - Constructor for class sjm.examples.sling.Tan
Constructs a function object that wraps a tan function around the given source function.
target - Variable in class sjm.parse.Assembly
 
target - Variable in class sjm.examples.sling.SlingMediator
 
term - Variable in class sjm.imperative.PrintlnCommand
 
Term - interface sjm.engine.Term.
The Term interface defines the core elements of the logic engine.
term() - Method in class sjm.examples.midimath.Midiloop
Returns a parser that will recognize arithmetic expressions containing just multiplication.
term() - Method in class sjm.examples.midimath.Midimath
Returns a parser that will recognize arithmetic expressions containing just multiplication.
term() - Method in class sjm.examples.midimath.MidiParser
 
term() - Method in class sjm.examples.midimath.MidiloopNot
Returns a parser that will recognize arithmetic expressions containing just multiplication.
term() - Method in class sjm.examples.query.ComparisonParser
 
term() - Method in class sjm.examples.regular.RegularParser
 
term() - Method in class sjm.examples.arithmetic.ArithmeticParser
 
term() - Method in class sjm.examples.logic.LogikusParser
 
term() - Method in class sjm.examples.sling.SlingParser
 
term0 - Variable in class sjm.engine.ArithmeticOperator
 
term1 - Variable in class sjm.engine.ArithmeticOperator
 
Terminal - class sjm.parse.Terminal.
A Terminal is a parser that is not a composition of other parsers.
Terminal() - Constructor for class sjm.parse.Terminal
Constructs an unnamed terminal.
Terminal(String) - Constructor for class sjm.parse.Terminal
Constructs a terminal with the given name.
TerminalNode - class sjm.examples.pretty.TerminalNode.
 
TerminalNode(Object) - Constructor for class sjm.examples.pretty.TerminalNode
Create a node that holds the given value.
terms - Variable in class sjm.examples.query.QueryBuilder
 
terms - Variable in class sjm.engine.Structure
 
terms() - Method in class sjm.engine.Structure
Return the terms of this structure.
test() - Method in class sjm.parse.ParserTester
Create a series of random language elements, and test that the parser can unambiguously parse each one.
textbook - Variable in class sjm.examples.cloning.Course
 
Textbook - class sjm.examples.cloning.Textbook.
This class just supports the ThisClass example of a typical clone.
Textbook() - Constructor for class sjm.examples.cloning.Textbook
 
textPanel(String, JTextArea, Dimension, Dimension) - Static method in class sjm.examples.sling.SlingIde
 
textPanel(String, JTextArea, Dimension, Dimension) - Static method in class sjm.utensil.SwingUtensil
Returns a standard text panel, with a scroll pane around a text area, and with a title border.
throwTrackException(Vector, Parser) - Method in class sjm.examples.track.Track
 
TimesAssembler - class sjm.examples.arithmetic.TimesAssembler.
Pop two numbers from the stack and push the result of multiplying the top number by the one below it.
TimesAssembler() - Constructor for class sjm.examples.arithmetic.TimesAssembler
 
timesElement() - Method in class sjm.examples.sling.SlingParser
 
timesFactor() - Method in class sjm.examples.query.ComparisonParser
 
timesFactor() - Method in class sjm.examples.arithmetic.ArithmeticParser
 
timesFactor() - Method in class sjm.examples.logic.LogikusParser
 
titledMessagePanel() - Method in class sjm.examples.sling.SlingIde
 
titledPlotPanel() - Method in class sjm.examples.sling.SlingIde
 
titledProgramPanel() - Method in class sjm.examples.sling.SlingIde
 
to - Variable in class sjm.examples.string.Substring
 
Token - class sjm.parse.tokens.Token.
A token represents a logical chunk of a string.
Token(char) - Constructor for class sjm.parse.tokens.Token
Constructs a token from the given char.
Token(double) - Constructor for class sjm.parse.tokens.Token
Constructs a token from the given number.
Token(String) - Constructor for class sjm.parse.tokens.Token
Constructs a token from the given string.
Token(TokenType, String, double) - Constructor for class sjm.parse.tokens.Token
Constructs a token of the indicated type and associated string or numeric values.
TokenAssembly - class sjm.parse.tokens.TokenAssembly.
A TokenAssembly is an Assembly whose elements are Tokens.
TokenAssembly(String) - Constructor for class sjm.parse.tokens.TokenAssembly
Constructs a TokenAssembly on a TokenString constructed from the given String.
TokenAssembly(Tokenizer) - Constructor for class sjm.parse.tokens.TokenAssembly
Constructs a TokenAssembly on a TokenString constructed from the given Tokenizer.
TokenAssembly(TokenString) - Constructor for class sjm.parse.tokens.TokenAssembly
Constructs a TokenAssembly from the given TokenString.
tokenAt(int) - Method in class sjm.parse.tokens.TokenString
Returns the token at the specified index.
tokenizer - Variable in class sjm.parse.tokens.TokenStringSource
 
tokenizer - Variable in class sjm.examples.sling.SlingParser
 
Tokenizer - class sjm.parse.tokens.Tokenizer.
A tokenizer divides a string into tokens.
tokenizer() - Static method in class sjm.examples.coffee.CoffeeParser
Returns a tokenizer that allows spaces to appear inside the "words" that identify a coffee's name.
tokenizer() - Static method in class sjm.examples.reserved.VolumeQuery2
Return a customized tokenizer that uses WordOrReservedState in place of WordState.
tokenizer() - Method in class sjm.examples.sling.SlingParser
Creates a tokenizer that uses a WordOrReservedState instead of a normal WordState.
Tokenizer() - Constructor for class sjm.parse.tokens.Tokenizer
Constructs a tokenizer with a default state table (as described in the class comment).
Tokenizer(String) - Constructor for class sjm.parse.tokens.Tokenizer
Constructs a tokenizer to read from the supplied string.
TokenizerState - class sjm.parse.tokens.TokenizerState.
A tokenizerState returns a token, given a reader, an initial character read from the reader, and a tokenizer that is conducting an overall tokenization of the reader.
TokenizerState() - Constructor for class sjm.parse.tokens.TokenizerState
 
tokens - Variable in class sjm.parse.tokens.TokenString
the tokens in this tokenString
tokenString - Variable in class sjm.parse.tokens.TokenAssembly
the "string" of tokens this assembly will consume
TokenString - class sjm.parse.tokens.TokenString.
A TokenString is like a String, but it is a series of Tokens rather than a series of chars.
TokenString(String) - Constructor for class sjm.parse.tokens.TokenString
Constructs a tokenString from the supplied string.
TokenString(Token[]) - Constructor for class sjm.parse.tokens.TokenString
Constructs a tokenString from the supplied tokens.
TokenString(Tokenizer) - Constructor for class sjm.parse.tokens.TokenString
Constructs a tokenString from the supplied reader and tokenizer.
TokenStringSource - class sjm.parse.tokens.TokenStringSource.
A TokenStringSource enumerates over a specified reader, returning TokenStrings delimited by a specified delimiter.
TokenStringSource(Tokenizer, String) - Constructor for class sjm.parse.tokens.TokenStringSource
Constructs a TokenStringSource that will read TokenStrings using the specified tokenizer, delimited by the specified delimiter.
TokenTester - class sjm.parse.tokens.TokenTester.
 
TokenTester(Parser) - Constructor for class sjm.parse.tokens.TokenTester
 
TokenType - class sjm.parse.tokens.TokenType.
Objects of this class represent a type of token, such as "number" or "word".
TokenType(String) - Constructor for class sjm.parse.tokens.TokenType
Creates a token type of the given name.
toString() - Method in class sjm.examples.karate.Student
 
toString() - Method in class sjm.parse.tokens.SymbolNode
Give a string representation of this node.
toString() - Method in class sjm.parse.tokens.TokenString
Returns a string representation of this tokenString.
toString() - Method in class sjm.parse.tokens.Token
Return a textual description of this object.
toString() - Method in class sjm.engine.Structure
Returns a string representation of this structure.
toString() - Method in class sjm.engine.Rule
Returns a string representation of this rule.
toString() - Method in class sjm.engine.Variable
Returns a string representation of this variable.
toString() - Method in class sjm.engine.Program
Returns a string representation of this program.
toString() - Method in class sjm.engine.EmptyList
Returns a string representation of the empty list.
toString() - Method in class sjm.engine.ConsultingNot
Returns a string description of this Not.
toString() - Method in class sjm.engine.Not
Returns a string description of this Not.
toString() - Method in class sjm.engine.Query
Returns a string representation of this query.
toString() - Method in class sjm.engine.Unification
Returns a string representation of this unification.
toString() - Method in class sjm.examples.chips.Order
Return a textual description of this order.
toString() - Method in class sjm.examples.chips.Chip
Return a textual description of this chip.
toString() - Method in class sjm.examples.chips.Customer
Return a textual description of this customer.
toString() - Method in class sjm.examples.robot.PlaceCommand
Return a textual description of this object.
toString() - Method in class sjm.examples.robot.ScanCommand
Return a textual description of this object.
toString() - Method in class sjm.examples.robot.PickCommand
Return a textual description of this object.
toString() - Method in class sjm.parse.Parser
Returns a textual description of this parser.
toString() - Method in class sjm.parse.Assembly
Returns a textual description of this assembly.
toString() - Method in class sjm.examples.coffee.Coffee
Return a textual description of this coffee type.
toString() - Method in class sjm.examples.pretty.ComponentNode
Return a textual description of this node.
toString() - Method in class sjm.imperative.NullCommand
Returns a string description of this null command.
toString() - Method in class sjm.imperative.WhileCommand
Returns a string description of this while command.
toString() - Method in class sjm.imperative.IfCommand
Returns a string description of this if command.
toString() - Method in class sjm.imperative.PrintlnCommand
Returns a string description of this print command.
toString() - Method in class sjm.imperative.AssignmentCommand
Returns a string representation of this command.
toString() - Method in class sjm.imperative.ForCommand
Returns a string description of this for command.
toString() - Method in class sjm.imperative.ReadCommand
Returns a string description of this read command.
toString() - Method in class sjm.imperative.CommandSequence
Returns a string description of this command sequence.
toString() - Method in class sjm.examples.sling.AddFunctionCommand
Returns a string description of this command.
toString() - Method in class sjm.examples.sling.Random
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.Extrema
 
toString() - Method in class sjm.examples.sling.Sin
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.Arithmetic
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.Slider
Return a string representation of this slider.
toString() - Method in class sjm.examples.sling.Cartesian
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.T
Returns a string representation of the time function.
toString() - Method in class sjm.examples.sling.Scale
Return a string representation of this function.
toString() - Method in class sjm.examples.sling.Polar
Return a string representation of this function.
toString() - Method in class sjm.examples.sling.Sling
Return a string representation of this function.
toString() - Method in class sjm.examples.sling.AssignFunctionCommand
Returns a string description of this command.
toString() - Method in class sjm.examples.sling.Abs
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.Floor
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.Variable
Returns a string representation of this variable.
toString() - Method in class sjm.examples.sling.Ceil
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.Tan
Returns a string representation of this function.
toString() - Method in class sjm.examples.sling.FunctionComparison
Returns a string representation of this comparison.
toString() - Method in class sjm.examples.sling.Point
Returns a string representation of this point.
toString() - Method in class sjm.examples.sling.Cos
Returns a string representation of this function.
toString() - Method in class sjm.utensil.LinearCalculator
Return a textual description of this object.
toString(int, boolean, Vector) - Method in class sjm.examples.pretty.ComponentNode
 
toString(int, boolean, Vector) - Method in class sjm.examples.pretty.TerminalNode
 
toString(int, boolean, Vector) - Method in class sjm.examples.pretty.CompositeNode
 
toString(Vector) - Method in class sjm.parse.Parser
Returns a textual description of this parser.
toStringQuiet() - Method in class sjm.engine.Unification
Returns a string representation of this unification, without printing variable names.
toStringSeparator() - Method in class sjm.parse.CollectionParser
Helps to textually describe this CollectionParser.
toStringSeparator() - Method in class sjm.parse.Sequence
 
toStringSeparator() - Method in class sjm.parse.Alternation
 
toStringWithoutLabels() - Method in class sjm.examples.pretty.ComponentNode
Return a textual description of this node without showing composite values.
total - Variable in class sjm.examples.design.RunningAverage
 
Track - class sjm.examples.track.Track.
A Track is a sequence that throws a TrackException if the sequence begins but does not complete.
Track() - Constructor for class sjm.examples.track.Track
Constructs a nameless Track.
Track(String) - Constructor for class sjm.examples.track.Track
Constructs a Track with the given name.
TrackException - exception sjm.examples.track.TrackException.
Signals that a parser could not match text after a specific point.
TrackException(String, String, String) - Constructor for class sjm.examples.track.TrackException
Constructs a TrackException with the specified reasons for the exception.
treeString(ComponentNode) - Method in class sjm.examples.pretty.PrettyParser
 
Trim - class sjm.examples.string.Trim.
This class wraps a trim function around an instance of another StringFunction class.
Trim() - Constructor for class sjm.examples.string.Trim
Construct a Trim function around the identity function, so that this object will just trim a supplied string.
Trim(StringFunction) - Constructor for class sjm.examples.string.Trim
Construct a Trim function that will wrap itself around the supplied source.
tryMatch(TokenAssembly) - Method in class sjm.examples.sling.SlingMediator
 
TT_EOF - Static variable in class sjm.parse.tokens.Token
A constant indicating that the end of the stream has been read.
TT_NUMBER - Static variable in class sjm.parse.tokens.Token
A constant indicating that a token is a number, like 3.14
TT_QUOTED - Static variable in class sjm.parse.tokens.Token
A constant indicating that a token is a quoted string, like "Launch Mi".
TT_RESERVED - Static variable in class sjm.examples.reserved.WordOrReservedState
A constant indicating that a token is a reserved word.
TT_SYMBOL - Static variable in class sjm.parse.tokens.Token
A constant indicating that a token is a symbol like "<=".
TT_WORD - Static variable in class sjm.parse.tokens.Token
A constant indicating a token is a word, like "cat"
ttype - Variable in class sjm.parse.tokens.Token
 
ttype() - Method in class sjm.parse.tokens.Token
Returns the type of this token.
twoArg(String, SlingFunction) - Method in class sjm.examples.sling.SlingParser
 

by Steve Metsker
A B C D E F G H I J K L M N O P Q R S T U V W X Y