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

W

where() - Method in class sjm.examples.query.JaqlParser
 
WhileCommand - class sjm.imperative.WhileCommand.
This command mimics a normal "while" loop, executing a command in a loop, so long as some condition holds true.
WhileCommand(BooleanTerm, Command) - Constructor for class sjm.imperative.WhileCommand
Construct a "while" command from the given condition and command.
whitespaceChar - Variable in class sjm.parse.tokens.WhitespaceState
 
whitespaceState - Variable in class sjm.parse.tokens.Tokenizer
 
WhitespaceState - class sjm.parse.tokens.WhitespaceState.
A whitespace state ignores whitespace (such as blanks and tabs), and returns the tokenizer's next token.
whitespaceState() - Method in class sjm.parse.tokens.Tokenizer
Return the state this tokenizer uses to recognize (and ignore) whitespace.
WhitespaceState() - Constructor for class sjm.parse.tokens.WhitespaceState
Constructs a whitespace state with a default idea of what characters are, in fact, whitespace.
Word - class sjm.parse.tokens.Word.
A Word matches a word from a token assembly.
Word() - Constructor for class sjm.parse.tokens.Word
 
wordChar - Variable in class sjm.parse.tokens.WordState
 
wordChar(int) - Method in class sjm.parse.tokens.WordState
 
WordOrReservedState - class sjm.examples.reserved.WordOrReservedState.
Override WordState to return known reserved words as tokens of type TT_RESERVED.
WordOrReservedState() - Constructor for class sjm.examples.reserved.WordOrReservedState
 
wordState - Variable in class sjm.parse.tokens.Tokenizer
 
WordState - class sjm.parse.tokens.WordState.
A wordState returns a word from a reader.
wordState() - Method in class sjm.parse.tokens.Tokenizer
Return the state this tokenizer uses to build words.
WordState() - Constructor for class sjm.parse.tokens.WordState
Constructs a word state with a default idea of what characters are admissible inside a word (as described in the class comment).
workOn(Assembly) - Method in class sjm.examples.query.SelectTermAssembler
Pop a term and pass it to a query builder.
workOn(Assembly) - Method in class sjm.examples.query.ComparisonAssembler
Pops a comparison term, an operator, and another comparison term.
workOn(Assembly) - Method in class sjm.examples.query.VariableAssembler
Pop a token from the stack, extract its string, and push a Variable of that name.
workOn(Assembly) - Method in class sjm.examples.query.ClassNameAssembler
Pop a class name, and inform a QueryBuilder that this is a class to select from.
workOn(Assembly) - Method in class sjm.examples.robot.PlaceAssembler
Sets an assembly's target to be a PlaceCommand object and note its location.
workOn(Assembly) - Method in class sjm.examples.robot.PickAssembler
Sets an assembly's target to be a PickCommand object and note its location.
workOn(Assembly) - Method in class sjm.examples.robot.ScanAssembler
Sets an assembly's target to be a ScanCommand object and note its location.
workOn(Assembly) - Method in class sjm.parse.Assembler
This is the one method all subclasses must implement.
workOn(Assembly) - Method in class sjm.examples.coffee.CountryAssembler
Pop a string, and set the target coffee's country to this string.
workOn(Assembly) - Method in class sjm.examples.coffee.AlsoFrenchAssembler
Set a target coffee object's boolean to indicate that this type of coffee also comes in a french roast.
workOn(Assembly) - Method in class sjm.examples.coffee.PriceAssembler
Pop a number, and set the target coffee's price to this string.
workOn(Assembly) - Method in class sjm.examples.coffee.NameAssembler
Pop a coffee's name from an assembly's stack, and set the assembly's target to be a new Coffee object with this name.
workOn(Assembly) - Method in class sjm.examples.coffee.RoastAssembler
Pop a string, and set the target coffee's roast to this string.
workOn(Assembly) - Method in class sjm.examples.coffee.FormerNameAssembler
Pop a string, and set the target coffee's former name to this string.
workOn(Assembly) - Method in class sjm.examples.pretty.FenceAssembler
Place the fence object on the assembly's stack.
workOn(Assembly) - Method in 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.
workOn(Assembly) - Method in class sjm.examples.pretty.PrettyTerminalAssembler
Replace a Token object on the stack with a TerminalNode that holds the token's value.
workOn(Assembly) - Method in 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.
workOn(Assembly) - Method in 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.
workOn(Assembly) - Method in class sjm.examples.pretty.PrettyEmptyAssembler
Push a TerminalNode that contains the word "empty" on the assembly's stack.
workOn(Assembly) - Method in class sjm.examples.design.AverageAssembler
Increases a running average, by the length of the string on the stack.
workOn(Assembly) - Method in class sjm.examples.regular.OrAssembler
Pop two parsers from the stack and push a new Alternation of them.
workOn(Assembly) - Method in class sjm.examples.regular.AndAssembler
Pop two parsers from the stack and push a new Sequence of them.
workOn(Assembly) - Method in class sjm.examples.regular.StarAssembler
Pop a parser from the stack and push a new Repetition of it.
workOn(Assembly) - Method in class sjm.examples.regular.CharAssembler
Pop a Character from the stack and push a SpecificChar interpeter in its place.
workOn(Assembly) - Method in class sjm.examples.arithmetic.PlusAssembler
Pop two numbers from the stack and push their sum.
workOn(Assembly) - Method in class sjm.examples.arithmetic.ExpAssembler
Pop two numbers from the stack and push the result of exponentiation the lower number to the upper one.
workOn(Assembly) - Method in class sjm.examples.arithmetic.DivideAssembler
Pop two numbers from the stack and push the result of dividing the top number into the one below it.
workOn(Assembly) - Method in class sjm.examples.arithmetic.NumAssembler
Replace the top token in the stack with the token's Double value.
workOn(Assembly) - Method in class sjm.examples.arithmetic.MinusAssembler
Pop two numbers from the stack and push the result of subtracting the top number from the one below it.
workOn(Assembly) - Method in 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.
workOn(Assembly) - Method in class sjm.examples.logic.VariableAssembler
Pops a string like "X" or "Person" from an assembly's stack and pushes a variable with that name.
workOn(Assembly) - Method in class sjm.examples.logic.ListAssembler
Pops the terms of a list from an assembly's stack, builds the list, and pushes it.
workOn(Assembly) - Method in class sjm.examples.logic.AxiomAssembler
Pops all of the structures on the stack, builds a rule from them, and pushes it.
workOn(Assembly) - Method in class sjm.examples.logic.NotAssembler
Pops a structure from the top of the stack and pushes a Not version of it.
workOn(Assembly) - Method in class sjm.examples.logic.ComparisonAssembler
Pops two comparison terms and an operator, builds the comparison, and pushes it.
workOn(Assembly) - Method in class sjm.examples.logic.AnonymousAssembler
Pushes an anonymous variable onto an assembly's stack.
workOn(Assembly) - Method in class sjm.examples.logic.EvaluationAssembler
Pops two terms, constructs an Evaluation from these terms, and pushes it.
workOn(Assembly) - Method in class sjm.examples.logic.ArithmeticAssembler
Pop two arithmetic operands, build an ArithmeticOperator from them, and push it.
workOn(Assembly) - Method in class sjm.examples.logic.StructureWithTermsAssembler
Pops the terms and functor of a structure from an assembly's stack, builds a structure, and pushes it.
workOn(Assembly) - Method in class sjm.examples.logic.AtomAssembler
Exchanges a token on an assembly's stack with an atom that has the token's value as its functor.
workOn(Assembly) - Method in class sjm.examples.logic.ListWithTailAssembler
Pops the tail and terms of a list from an assembly's stack, builds the list, and pushes it.
workOn(Assembly) - Method in class sjm.examples.sling.NegativeAssembler
Push the point (-1, -1), and ask an Arithmetic "times" object to work on the assembly.
workOn(Assembly) - Method in class sjm.examples.sling.ScaleAssembler
Slip the arguments (0, t, 1) into the stack, and use a normal Scale object to work on the assembly.
workOn(Assembly) - Method in class sjm.examples.sling.ForAssembler
Pop the elements of a "for" loop, construct a ForCommand, and push it.
workOn(Assembly) - Method in class sjm.examples.sling.FunctionAssembler
Pop as many source functions as the prototype function has, create a fresh copy of the prototype using these sources, and push the copy.
workOn(Assembly) - Method in class sjm.examples.sling.PlotAssembler
Pop a function, and push a command that will, at execution time, create a renderable function.
workOn(Assembly) - Method in class sjm.examples.sling.AssignmentAssembler
Pops a function and a variable, constructs an AssignFunctionCommand from these terms, and pushes the command.
workOn(Assembly) - Method in class sjm.examples.sling.SliderAssembler
Push a Slider object formed from a JSlider
workOn(Assembly) - Method in class sjm.examples.sling.VariableAssembler
Pop the name of a variable, lookup the variable in the target's scope, and push the variable.
workOn(Assembly) - Method in class sjm.examples.sling.NumAssembler
Pop a number n, and push the function (t, n).
workOn(Assembly) - Method in class sjm.examples.sling.PiAssembler
Push the function (t, pi).
wors - Variable in class sjm.examples.sling.SlingParser
 
wors() - 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