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

P

p - Variable in class sjm.parse.ParserTester
 
p(int) - Static method in class sjm.combinatorics.Combinatoric
 
p(int, int) - Static method in class sjm.combinatorics.Combinatoric
 
paintComponent(Graphics) - Method in class sjm.examples.sling.SlingPanel
Display the functions set by setPlot().
parent - Variable in class sjm.parse.tokens.SymbolNode
 
parse(String) - Method in class sjm.examples.sling.SlingMediator
 
parse(TokenString, Parser, String) - Static method in class sjm.examples.logic.LogikusFacade
 
parseInput() - Method in class sjm.examples.query.JaqlMediator
 
parseLeft(PushbackReader) - Method in class sjm.parse.tokens.NumberState
 
parseProgramAndQuery() - Method in class sjm.examples.logic.LogikusMediator
 
parser - Variable in class sjm.examples.query.JaqlMediator
 
parser - Variable in class sjm.examples.pretty.PrettyParser
 
parser - Variable in class sjm.examples.sling.SlingMediator
 
Parser - class sjm.parse.Parser.
A Parser is an object that recognizes the elements of a language.
parser() - Method in class sjm.examples.query.JaqlMediator
 
Parser() - Constructor for class sjm.parse.Parser
Constructs a nameless parser.
Parser(String) - Constructor for class sjm.parse.Parser
Constructs a parser with the given name.
parseRight(PushbackReader) - Method in class sjm.parse.tokens.NumberState
 
parseRight(PushbackReader) - Method in class sjm.examples.tokens.ScientificNumberState
 
ParserTester - class sjm.parse.ParserTester.
This class generates random language elements for a parser and tests that the parser can accept them.
ParserTester(Parser) - Constructor for class sjm.parse.ParserTester
Constructs a tester for the given parser.
ParserVisitor - class sjm.parse.ParserVisitor.
This class provides a "visitor" hierarchy in support of the Visitor pattern -- see the book, "Design Patterns" for an explanation of this pattern.
ParserVisitor() - Constructor for class sjm.parse.ParserVisitor
 
parseTrees(Assembly) - Method in class sjm.examples.pretty.PrettyParser
Returns a collection of strings that show the order of a parse of the given assembly.
peek() - Method in class sjm.parse.tokens.TokenAssembly
Shows the next object in the assembly, without removing it
peek() - Method in class sjm.parse.Assembly
Shows the next object in the assembly, without removing it
peek() - Method in class sjm.parse.chars.CharacterAssembly
Shows the next object in the assembly, without removing it
Permutations - class sjm.combinatorics.Permutations.
The Permutations class provides an enumeration of all permutations of an array of objects.
Permutations(Object[]) - Constructor for class sjm.combinatorics.Permutations
Create a Permutation to enumerate through all possible lineups of the supplied array of Objects.
Permutations(Object[], int) - Constructor for class sjm.combinatorics.Permutations
Create a Permutation to enumerate through all possible lineups of the supplied array of Objects.
Person - class sjm.examples.cloning.Person.
This type was created by Steve Metsker
Person(String) - Constructor for class sjm.examples.cloning.Person
This method was created by Steve Metsker
phrase() - Method in class sjm.examples.regular.RegularParser
 
phrase() - Method in class sjm.examples.arithmetic.ArithmeticParser
 
phrase() - Method in class sjm.examples.logic.LogikusParser
 
phraseStar() - Method in class sjm.examples.regular.RegularParser
 
pi() - Method in class sjm.examples.sling.SlingParser
 
PiAssembler - class sjm.examples.sling.PiAssembler.
Pushes the function (t, pi).
PiAssembler() - Constructor for class sjm.examples.sling.PiAssembler
 
PickAssembler - class sjm.examples.robot.PickAssembler.
Sets an assembly's target to be a PickCommand and note its location.
PickAssembler() - Constructor for class sjm.examples.robot.PickAssembler
 
PickCommand - class sjm.examples.robot.PickCommand.
Just for demonstration.
pickCommand() - Method in class sjm.examples.robot.RobotRefactored
 
pickCommand() - Method in class sjm.examples.robot.RobotParser
 
PickCommand() - Constructor for class sjm.examples.robot.PickCommand
 
PlaceAssembler - class sjm.examples.robot.PlaceAssembler.
Sets an assembly's target to be a PlaceCommand and note its location.
PlaceAssembler() - Constructor for class sjm.examples.robot.PlaceAssembler
 
PlaceCommand - class sjm.examples.robot.PlaceCommand.
Just for demonstration.
placeCommand() - Method in class sjm.examples.robot.RobotRefactored
 
placeCommand() - Method in class sjm.examples.robot.RobotParser
 
PlaceCommand() - Constructor for class sjm.examples.robot.PlaceCommand
 
PlotAssembler - class sjm.examples.sling.PlotAssembler.
Pops a function, and pushes an AddFunctionCommand object.
PlotAssembler() - Constructor for class sjm.examples.sling.PlotAssembler
 
plotPanel - Variable in class sjm.examples.sling.SlingIde
 
plotPanel - Variable in class sjm.examples.sling.SlingMediator
 
plotPanel() - Method in class sjm.examples.sling.SlingIde
 
plotStatement() - Method in class sjm.examples.sling.SlingParser
 
PlusAssembler - class sjm.examples.arithmetic.PlusAssembler.
Pop two numbers from the stack and push their sum.
PlusAssembler() - Constructor for class sjm.examples.arithmetic.PlusAssembler
 
plusPhrase() - Method in class sjm.examples.logic.LogikusParser
 
plusTerm() - Method in class sjm.examples.query.ComparisonParser
 
plusTerm() - Method in class sjm.examples.arithmetic.ArithmeticParser
 
plusTerm() - Method in class sjm.examples.sling.SlingParser
 
Point - class sjm.examples.sling.Point.
Objects of this class store two numbers that effectively determine a point in two-dimensional space.
Point(double, double) - Constructor for class sjm.examples.sling.Point
Create a point with the given coordinates.
pointsX - Variable in class sjm.examples.sling.SlingPanel
 
pointsY - Variable in class sjm.examples.sling.SlingPanel
 
Polar - class sjm.examples.sling.Polar.
This class represents the location of a sling stone in terms of the length of a sling's strap, and the angle (in radians) around the slinger's head.
Polar() - Constructor for class sjm.examples.sling.Polar
Constructs polar(t, t).
Polar(SlingFunction, SlingFunction) - Constructor for class sjm.examples.sling.Polar
Constructs a polar function object from the given sources,using the y component of the first function as a sling's strap length, and the y component of the second function as the sling's angle.
pop() - Method in class sjm.parse.Assembly
Removes the object at the top of this assembly's stack and returns it.
popCommandSequence(Assembly) - Static method in class sjm.examples.sling.ForAssembler
 
preAssembler - Variable in class sjm.parse.Repetition
 
preferredWidth - Variable in class sjm.examples.sling.SlingIde
 
PREFERREDWIDTH - Static variable in class sjm.examples.query.JaqlUe
 
PrettyAlternationAssembler - class sjm.examples.pretty.PrettyAlternationAssembler.
Replace a ComponentNode object on the stack with a new composite that holds the popped node as its only child.
PrettyAlternationAssembler(String) - Constructor for class sjm.examples.pretty.PrettyAlternationAssembler
Create an assembler that will replace a ComponentNode object on the stack with a new composite that holds the popped node as its only child and whose name is as supplied here.
PrettyEmptyAssembler - class sjm.examples.pretty.PrettyEmptyAssembler.
Push a TerminalNode that contains the word "empty" on the assembly's stack.
PrettyEmptyAssembler() - Constructor for class sjm.examples.pretty.PrettyEmptyAssembler
 
PrettyParser - class sjm.examples.pretty.PrettyParser.
This class accepts a Parser object in its constructor.
PrettyParser(Parser) - Constructor for class sjm.examples.pretty.PrettyParser
Construct a pretty parser whose assemblers create a "pretty print" of input text.
PrettyRepetitionAssembler - class sjm.examples.pretty.PrettyRepetitionAssembler.
Replace the nodes above a given "fence" object with a new composite that holds the popped nodes as its children.
PrettyRepetitionAssembler(String, Object) - Constructor for class sjm.examples.pretty.PrettyRepetitionAssembler
Construct an assembler that will replace the nodes above the supplied "fence" object with a new composite that will hold the popped nodes as its children.
PrettySequenceAssembler - class sjm.examples.pretty.PrettySequenceAssembler.
Replace a given number of nodes on the stack with a new composite that holds the popped nodes as its children.
PrettySequenceAssembler(String, int) - Constructor for class sjm.examples.pretty.PrettySequenceAssembler
Construct an assembler that will replace a given number of nodes on the stack with a new composite that holds the popped nodes as its children.
PrettyTerminalAssembler - class sjm.examples.pretty.PrettyTerminalAssembler.
Replace a Token object on the stack with a TerminalNode that holds the token's value.
PrettyTerminalAssembler() - Constructor for class sjm.examples.pretty.PrettyTerminalAssembler
 
PrettyVisitor - class sjm.examples.pretty.PrettyVisitor.
An object of this class visits the parsers in a parser composite and sets each subparser's assembler to be one of the "pretty" assemblers in this package.
PrettyVisitor() - Constructor for class sjm.examples.pretty.PrettyVisitor
 
price - Variable in class sjm.examples.chips.Chip
 
price - Variable in class sjm.examples.coffee.Coffee
 
price() - Method in class sjm.examples.coffee.CoffeeParser
 
PriceAssembler - class sjm.examples.coffee.PriceAssembler.
Pops a number and sets the target coffee's price to this number.
PriceAssembler() - Constructor for class sjm.examples.coffee.PriceAssembler
 
PriceHelper - class sjm.examples.coffee.PriceHelper.
This helper sets a target coffee object's price attribute.
PriceHelper() - Constructor for class sjm.examples.coffee.PriceHelper
 
PrintlnCommand - class sjm.imperative.PrintlnCommand.
This command, when executed, prints out the value of a term provided in the constructor.
PrintlnCommand(Term) - Constructor for class sjm.imperative.PrintlnCommand
Construct a "print" command to print the supplied term.
PrintlnCommand(Term, PrintWriter) - Constructor for class sjm.imperative.PrintlnCommand
Construct a "print" command to print the supplied term, printing to the supplied PrintWriter object.
professor - Variable in class sjm.examples.cloning.Course
 
Professor - class sjm.examples.cloning.Professor.
This class just supports the ThisClass example of a typical clone.
Professor() - Constructor for class sjm.examples.cloning.Professor
 
program - Variable in class sjm.examples.logic.LogikusMediator
 
Program - class sjm.engine.Program.
A Program is a collection of rules and facts that together form a logical model.
program() - Static method in class sjm.examples.query.ChipSource
Returns all the data in the chip database.
Program() - Constructor for class sjm.engine.Program
Create a new program with no axioms.
Program(Axiom[]) - Constructor for class sjm.engine.Program
Create a new program with the given axioms.
program(String) - Static method in class sjm.examples.logic.LogikusFacade
Parse the text of a Logikus program and return a Program object.
programArea - Variable in class sjm.examples.logic.LogikusIde
 
programArea - Variable in class sjm.examples.logic.LogikusMediator
 
programArea - Variable in class sjm.examples.sling.SlingIde
 
programArea - Variable in class sjm.examples.sling.SlingMediator
 
programArea() - Method in class sjm.examples.logic.LogikusIde
 
programArea() - Method in class sjm.examples.sling.SlingIde
 
ProgramEnumerator - class sjm.engine.ProgramEnumerator.
A ProgramEnumerator returns the axioms of a program, one at a time.
ProgramEnumerator(Program) - Constructor for class sjm.engine.ProgramEnumerator
Construct an enumeration of the given program.
programMessagePane() - Method in class sjm.examples.sling.SlingIde
 
provableStructures(AxiomSource, Scope, Structure[]) - Static method in class sjm.engine.DynamicRule
Create provable versions of an input array of structures.
proveButtonPanel() - Method in class sjm.examples.logic.LogikusIde
 
proveNext() - Method in class sjm.examples.logic.LogikusMediator
 
proveNextButton - Variable in class sjm.examples.logic.LogikusIde
 
proveNextButton - Variable in class sjm.examples.logic.LogikusMediator
 
proveNextButton() - Method in class sjm.examples.logic.LogikusIde
 
proveRemaining - Variable in class sjm.examples.logic.LogikusMediator
 
proveRemaining() - Method in class sjm.examples.logic.LogikusMediator
 
proveRestButton - Variable in class sjm.examples.logic.LogikusIde
 
proveRestButton - Variable in class sjm.examples.logic.LogikusMediator
 
proveRestButton() - Method in class sjm.examples.logic.LogikusIde
 
PubliclyCloneable - interface sjm.utensil.PubliclyCloneable.
Defines a type of object which anybody can clone.
push(Object) - Method in class sjm.parse.Assembly
Pushes an object onto the top of this assembly's stack.

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