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

R

Random - class sjm.examples.sling.Random.
Objects of this class return a random number between 0 and 1 when asked for their value.
Random() - Constructor for class sjm.examples.sling.Random
 
randomExpansion(int, int) - Method in class sjm.parse.tokens.QuotedString
Create a set with one random quoted string (with 2 to 6 characters).
randomExpansion(int, int) - Method in class sjm.parse.tokens.Num
Create a set with one random number (between 0 and 100).
randomExpansion(int, int) - Method in class sjm.parse.tokens.Word
Create a set with one random word (with 3 to 7 characters).
randomExpansion(int, int) - Method in class sjm.parse.Parser
 
randomExpansion(int, int) - Method in class sjm.parse.Terminal
 
randomExpansion(int, int) - Method in class sjm.parse.Sequence
 
randomExpansion(int, int) - Method in class sjm.parse.Alternation
 
randomExpansion(int, int) - Method in class sjm.parse.Repetition
Create a collection of random elements that correspond to this repetition.
randomExpansion(int, int) - Method in class sjm.parse.Empty
 
randomExpansion(int, int) - Method in class sjm.parse.chars.Digit
Create a set with one random digit.
randomExpansion(int, int) - Method in class sjm.parse.chars.Letter
Create a set with one random letter.
randomExpansion(int, int) - Method in class sjm.examples.mechanics.LowercaseWord
 
randomExpansion(int, int) - Method in class sjm.examples.mechanics.UppercaseWord
Create a set with one random uppercase word (with 3 to 7 characters).
randomInput(int, String) - Method in class sjm.parse.Parser
Return a random element of this parser's language.
randomSettle(int, int) - Method in class sjm.parse.Alternation
 
rBrace() - Static method in class sjm.examples.sling.SlingParser
 
ReadCommand - class sjm.imperative.ReadCommand.
This command, when executed, reads in a string and assigns it to a supplied variable.
ReadCommand(Variable) - Constructor for class sjm.imperative.ReadCommand
Construct a "read" command to read a value, assigning it to the supplied variable.
ReadCommand(Variable, BufferedReader) - Constructor for class sjm.imperative.ReadCommand
Construct a "read" command to read a value from the supplied reader, assigning the value to the supplied variable.
ReadCommand(Variable, InputStream) - Constructor for class sjm.imperative.ReadCommand
Construct a "read" command to read a value from the supplied input stream, assigning the value to the supplied variable.
reader - Variable in class sjm.parse.tokens.Tokenizer
 
reader - Variable in class sjm.imperative.ReadCommand
 
RegularExpressionException - exception sjm.examples.regular.RegularExpressionException.
Signals that a given string is not recognizable as a regular expression.
RegularExpressionException() - Constructor for class sjm.examples.regular.RegularExpressionException
Constructs a RegularExpressionException with no detail message.
RegularExpressionException(String) - Constructor for class sjm.examples.regular.RegularExpressionException
Constructs a RegularExpressionException with the specified detail message.
RegularParser - class sjm.examples.regular.RegularParser.
This class provides a parser that recognizes regular expressions.
RegularParser() - Constructor for class sjm.examples.regular.RegularParser
 
remainder(String) - Method in class sjm.parse.tokens.TokenAssembly
Returns a textual representation of the amount of this tokenAssembly that remains to be consumed.
remainder(String) - Method in class sjm.parse.Assembly
Returns the elements of the assembly that remain to be consumed, separated by the specified delimiter.
remainder(String) - Method in class sjm.parse.chars.CharacterAssembly
Returns a textual representation of the amount of this characterAssembly that remains to be consumed.
remainderElement() - Method in class sjm.examples.sling.SlingParser
 
Renderable - class sjm.examples.sling.Renderable.
This class contains a Sling function and the number of lines to use in rendering the function.
Renderable(SlingFunction, SlingFunction) - Constructor for class sjm.examples.sling.Renderable
Create a function that will be rendered with the given number of lines.
RenderableCollection - class sjm.examples.sling.RenderableCollection.
This class holds a collection of renderable Sling functions.
RenderableCollection() - Constructor for class sjm.examples.sling.RenderableCollection
 
renderables - Variable in class sjm.examples.sling.AddFunctionCommand
 
renderables - Variable in class sjm.examples.sling.RenderableCollection
 
renderables - Variable in class sjm.examples.sling.SlingTarget
 
renderables - Variable in class sjm.examples.sling.SlingPanel
 
Repetition - class sjm.parse.Repetition.
A Repetition matches its underlying parser repeatedly against a assembly.
Repetition(Parser) - Constructor for class sjm.parse.Repetition
Constructs a repetition of the given parser.
Repetition(Parser, String) - Constructor for class sjm.parse.Repetition
Constructs a repetition of the given parser with the given name.
reportLeftovers(Assembly, String) - Static method in class sjm.examples.logic.LogikusFacade
 
reportNoMatch(TokenString, String) - Static method in class sjm.examples.logic.LogikusFacade
 
reptile() - Static method in class sjm.examples.pretty.ShowPrettyAlternations
Returns a parser that recognizes some reptiles.
reserve(String) - Method in class sjm.examples.sling.SlingParser
 
ReservedLiteral - class sjm.examples.sling.ReservedLiteral.
A ReservedLiteral matches a specific string that a tokenizer returns as a reserved word type.
ReservedLiteral(String) - Constructor for class sjm.examples.sling.ReservedLiteral
Constructs a reserved literal that will match the specified string as a reserved word.
ReservedWord - class sjm.examples.reserved.ReservedWord.
A ReservedWord matches a word whose token type is WordOrReservedState.TT_RESERVED.
ReservedWord() - Constructor for class sjm.examples.reserved.ReservedWord
 
reset(int) - Method in class sjm.parse.tokens.NumberState
 
reset(int) - Method in class sjm.examples.tokens.ScientificNumberState
 
resolvent - Static variable in class sjm.engine.Fact
 
resolvent - Variable in class sjm.engine.ConsultingStructure
 
resolvent() - Method in class sjm.engine.Fact
Returns an empty resolvent
resolvent() - Method in interface sjm.engine.DynamicAxiom
Return the tail of this dynamic axiom.
resolvent() - Method in class sjm.engine.DynamicRule
Returns the series of structures which, if proven, prove the truth of the head.
rest - Variable in class sjm.examples.string.Substring
 
resultArea - Variable in class sjm.examples.query.JaqlMediator
 
resultArea - Variable in class sjm.examples.query.JaqlUe
 
resultArea() - Method in class sjm.examples.query.JaqlUe
 
resultsArea - Variable in class sjm.examples.logic.LogikusIde
 
resultsArea - Variable in class sjm.examples.logic.LogikusMediator
 
resultsArea() - Method in class sjm.examples.logic.LogikusIde
 
reverseAfter(int) - Method in class sjm.combinatorics.Permutations
Reverse the index elements to the right of the specified index.
rightmostDip() - Method in class sjm.combinatorics.Permutations
 
rightmostIndexBelowMax() - Method in class sjm.combinatorics.Combinations
 
roast - Variable in class sjm.examples.coffee.Coffee
 
roast() - Method in class sjm.examples.coffee.CoffeeParser
 
RoastAssembler - class sjm.examples.coffee.RoastAssembler.
This assembler pops a string, and sets the target coffee's roast to this string.
RoastAssembler() - Constructor for class sjm.examples.coffee.RoastAssembler
 
RoastHelper - class sjm.examples.coffee.RoastHelper.
This helper sets a target coffee object's roast attribute.
RoastHelper() - Constructor for class sjm.examples.coffee.RoastHelper
 
RobotCommand - class sjm.examples.robot.RobotCommand.
A RobotCommand encapsulates the work that lies behind a high level command like "pick carrier from input1".
RobotCommand() - Constructor for class sjm.examples.robot.RobotCommand
 
RobotMonolithic - class sjm.examples.robot.RobotMonolithic.
Show how to create a parser and use it in a single method.
RobotMonolithic() - Constructor for class sjm.examples.robot.RobotMonolithic
 
RobotParser - class sjm.examples.robot.RobotParser.
This class's start() method provides a parser that will recognize a command for a track robot and build a corresponding command object.
RobotParser() - Constructor for class sjm.examples.robot.RobotParser
 
RobotRefactored - class sjm.examples.robot.RobotRefactored.
Provide an example of a class that affords a parser for the "robot" command language.
RobotRefactored() - Constructor for class sjm.examples.robot.RobotRefactored
 
rParen() - Static method in class sjm.examples.sling.SlingParser
 
Rule - class sjm.engine.Rule.
A Rule represents a logic statement that a structure is true if a following series of other structures are true.
Rule(Structure) - Constructor for class sjm.engine.Rule
Construct a one-structure rule from the given structure.
Rule(Structure[]) - Constructor for class sjm.engine.Rule
Construct rule from the given structures.
ruleDef() - Method in class sjm.examples.logic.LogikusParser
 
run() - Method in class sjm.examples.logic.LogikusMediator
Proves the query against the program.
run() - Method in class sjm.examples.sling.SlingMediator
 
RunningAverage - class sjm.examples.design.RunningAverage.
Objects of this class maintain a running average.
RunningAverage() - Constructor for class sjm.examples.design.RunningAverage
 

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