Object-oriented Parser System
v3.6
A B C D E F G H I J L M N O P Q R S T U V W X Y

A

actions(PrintWriter, Parser) - Static method in class Gen
generate actions interface.
add(Object[], int) - Static method in class Gl.Tree
(inefficient) implementation of mutable lists.
add(int, List) - Method in class Gl.Tree
factory method.
add(int, Object) - Method in class Gl.Tree.Add
 
add(int, Object) - Method in class Gl.Tree.AndIf
 
add(int, Object) - Method in class Gl.Tree.Assign
 
add(int, Object) - Method in class Gl.Tree.Deref
 
add(int, Object) - Method in class Gl.Tree.Div
 
add(int, Object) - Method in class Gl.Tree.Eq
 
add(int, Object) - Method in class Gl.Tree.Ge
 
add(int, Object) - Method in class Gl.Tree.Gt
 
add(int, Object) - Method in class Gl.Tree.Guard
 
add(int, Object) - Method in class Gl.Tree.Le
 
add(int, Object) - Method in class Gl.Tree.Lit
 
add(int, Object) - Method in class Gl.Tree.Loop
 
add(int, Object) - Method in class Gl.Tree.Lt
 
add(int, Object) - Method in class Gl.Tree.Mul
 
add(int, Object) - Method in class Gl.Tree.Ne
 
add(int, Object) - Method in class Gl.Tree.OrIf
 
add(int, Object) - Method in class Gl.Tree.Print
 
add(int, Object) - Method in class Gl.Tree.Rem
 
add(int, Object) - Method in class Gl.Tree.Select
 
add(int, Object) - Method in class Gl.Tree.Stmt
 
add(int, Object) - Method in class Gl.Tree.Sub
 
add(int, Object) - Method in class Gl.Tree.Var
 
add(int, Object) - Method in class Gl.Tree.With
 
add(int, List) - Method in class Tree
factory method.
addNull - Variable in class Build
true (default) to record null for noInput.
advance() - Method in class Gl.yyLex
 
advance() - Method in class Lambda.yyLex
 
advance() - Method in class Scheme.yyLex
 
advance() - Method in class Recognize
turn IOException into an error.
advance() - Method in interface Scanner
move on to next token.
advance() - Method in class yyLex
 
advance(int) - Method in class Buffer.InputImpl
create a wrapper with the offset shifted forward.
advance(int, int) - Method in class Buffer.InputImpl
hook for subclasses: create result of advance(int).
advance(int, int) - Method in class ClonedBuffer.InputImpl
return a new object.
advance(int, int) - Method in class ClonedStream.InputImpl
return a new object.
advance(int) - Method in interface Input
advance position within Input.charSequence(); can return this or new object.
advance(Input) - Method in class Scanner
move on next token and value.
af - Static variable in class Eval
 
af - Static variable in class Tree
 
again - Variable in class Follow
set if another pass is required, union over Follow.marked.
alpha() - Method in class Tree.Expression
alpha conversion: clones all locally bound variables.
alpha() - Method in class Tree.Function
returns new function with variable cloned all over.
alpha() - Method in class Tree.Invocation
delegates to the two expressions.
and(int, Parser.Node...) - Method in class ParserFactory
factory method.
and(int, List) - Method in class XbnfBuilder
and: '{' xors ',' xors +/ ',' '}' list?
andif(int, List) - Method in class Gl.Tree
factory method.
andif(int, List) - Method in class Tree
factory method.
andList(int, Parser.Node, Parser.Node...) - Method in class ParserFactory
factory method.
andThen(Scope) - Method in class Parser
sequential execution: create a parser which will apply the receiver and, if successful, pass the result value to the argument and apply the resulting parser.
arg - Variable in class Tree.Invocation
 
Arithmetic - Interface in mops
describe arithmetic expressions for ParserFactory.
assign(int, List) - Method in class Gl.Tree
factory method.
assign(int, List) - Method in class Tree
factory method.
atEnd() - Method in class Buffer.InputImpl
true if offset at end of buffer and read() is false.
atEnd() - Method in interface Input
true at physical end of input.
Axioms - Class in mops
demonstrate the Monad/MonadPlus axioms.
Axioms() - Constructor for class Axioms
 

B

badInput - Static variable in interface Symbols
symbol: represents unrecognizable input.
beta() - Method in class Tree.Expression
beta reduction: applies a function.
beta() - Method in class Tree.Invocation
returns result of invoking the first expression with the second, if the first expression is a function, or delegates to the first expression.
Blank(Object) - Method in class Mops
factory method, normalizes white space.
blanks - Static variable in class MopsParser
 
Boot - Class in oops3
bootstrap: hand-coded grammar tree.
Boot() - Constructor for class Boot
 
Buffer - Class in scanner
Input provider, allows access to a string using mutable Inputs.
Buffer(StringBuilder) - Constructor for class Buffer
create from a StringBuilder.
buffer - Variable in class Buffer
cached input.
Buffer.InputImpl - Class in scanner
wrap a current character offset.
Buffer.InputImpl(int, int) - Constructor for class Buffer.InputImpl
see Buffer.newInput(java.lang.StringBuilder) and advance(int).
Build - Class in lambda
Lambda calculus builder.
Build() - Constructor for class Build
 
Build - Class in oops3
ParserFactory aspect: build a tree.
Build(Parser) - Constructor for class Build
 
build(Scanner, Object, boolean) - Method in class Build
delegate to recognize.
builder - Variable in class Build
can modify the result of each Rule.

C

charSequence() - Method in class Buffer.InputImpl
available characters.
charSequence() - Method in interface Input
available characters.
check(Parser.Node) - Method in class LL1
warning if lookahead and follow intersect.
check(Parser.Node, BitSet) - Method in class LL1
warning if follow and other set intersect.
checkIf(Parser.Node) - Method in class LL1
warning if node accepts noInput and lookahead and follow intersect.
className(Object) - Static method in class Utils
return simplified class name.
ClonedBuffer - Class in scanner
Input provider, allows access to a string using immutable Inputs.
ClonedBuffer(StringBuilder) - Constructor for class ClonedBuffer
create from a StringBuilder.
ClonedBuffer.InputImpl - Class in scanner
wrap an immutable current character offset.
ClonedBuffer.InputImpl(int, int) - Constructor for class ClonedBuffer.InputImpl
 
ClonedStream - Class in scanner
Input provider, allows access to a stream using immutable Inputs.
ClonedStream(BufferedReader) - Constructor for class ClonedStream
create from a BufferedReader.
ClonedStream.InputImpl - Class in scanner
wrap an immutable current character offset.
ClonedStream.InputImpl(int, int) - Constructor for class ClonedStream.InputImpl
 
collections - Variable in class Build
current collections for Permute.
commands(String...) - Method in class Main
run commands as described above.
current - Variable in class Build
current collection.

D

definition(int, List) - Method in class Build
definition: '$' Id ('=' expression | Id);
store macro definition or process command.
delim(Parser.Node) - Method in class Grammar
'/' node
delimit(int, int, int, Parser.Node, Parser.Node) - Method in class ParserFactory
factory method.
delimiter - Variable in class Parser.Delimit
 
delimiter - Variable in class Parser.PermutedList
 
delimitMany(int, Parser.Node, Parser.Node) - Method in class ParserFactory
convenience method: delimit zero or more times.
delimitSome(int, Parser.Node, Parser.Node) - Method in class ParserFactory
convenience method: delimit zero or more times.
deref(int, List) - Method in class Gl.Tree
factory method.
deref(int, List) - Method in class Tree
factory method.
div(int, List) - Method in class Gl.Tree
factory method.
div(int, List) - Method in class Tree
factory method.
Dump - Class in oops3
ParserFactory aspect: display Parser.literals, Parser.patterns, and Parser.rules as an indented tree.
Dump(Parser) - Constructor for class Dump
 
dump - Static variable in class Dump
dump helpers.
dump(PrintWriter, String, Object) - Static method in class Dump
display an arbitrary List-based tree.
dump(PrintWriter, boolean, Follow) - Method in class Dump
output parser tree.
dump(PrintWriter, String, Object) - Method in interface Dump.Helper
 
Dump.Helper - Interface in oops3
what a dump helper must do.

E

EbnfBuilder - Class in oops3
builder for recognizer built from ebnf.rfc and ebnf.ebnf.
EbnfBuilder() - Constructor for class EbnfBuilder
 
endOfFile - Static variable in interface Symbols
symbol: represents the end of input to the scanner.
engine - Variable in class Scanner
concatenated from the regular expressions.
Env - Class in gl
environment for lexical scoping.
Env() - Constructor for class Env
empty environment.
Env(String[], Object[], Env) - Constructor for class Env
extended environment.
env - Variable in class Visitor
current environment, initialized empty.
Env.DenotedValue - Class in gl
what is bound to an identifier.
Env.DenotedValue(Object) - Constructor for class Env.DenotedValue
 
eof() - Method in class ParserFactory
create a Parser to accept end of input.
epilog(PrintWriter, Parser) - Static method in class Gen
output epilog.
epilog - Variable in class Parser
prolog and epilog code.
EPILOG - Variable in class yyLex
 
eq(int, List) - Method in class Gl.Tree
factory method.
eq(int, List) - Method in class Tree
factory method.
error - Variable in class Tree
if true, encountered an error.
error - Variable in class ParserFactory
if set, parser() will return null.
error(int, String) - Method in class ParserFactory
should be overwritten to redirect all messages.
error - Variable in class Utils
true if there was an error.
error(String) - Method in class Utils
writes error message, sets Utils.error.
error(Parser.Node, String) - Method in class Utils
writes error message with (nonzero) position from node.
eval(Env) - Method in class Tree.Add
 
eval(Env) - Method in class Tree.AndIf
 
eval(Env) - Method in class Tree.Assign
 
eval(Env) - Method in class Tree.Deref
 
eval(Env) - Method in class Tree.Div
 
eval(Env) - Method in class Tree.Eq
 
eval(Env) - Method in class Tree.Ge
 
eval(Env) - Method in class Tree.Gt
 
eval(Env) - Method in interface Tree.Interpreter
execute this subtree, return value (if any).
eval(Env) - Method in class Tree.Le
 
eval(Env) - Method in class Tree.Lit
 
eval(Env) - Method in class Tree.Loop
 
eval(Env) - Method in class Tree.Lt
 
eval(Env) - Method in class Tree.Mul
 
eval(Env) - Method in class Tree.Ne
 
eval(Env) - Method in class Tree.OrIf
 
eval(Env) - Method in class Tree.Print
 
eval(Env) - Method in class Tree.Rem
 
eval(Env) - Method in class Tree.Select
 
eval(Env) - Method in class Tree.Sub
 
eval(Env) - Method in class Tree.With
 
eval(int, List) - Method in class Build
eval: expression;
evaluate lambda expression.
eval - Variable in class Tree
if true, pass by value.
eval(boolean) - Method in class Tree.Expression
applies beta reductions.
Eval - Class in mops
demonstrate arithmetic expression evaluation.
Eval() - Constructor for class Eval
 
evalGuards(List, Env) - Static method in class Tree
return true guards.
evalGuards(List) - Method in class Visitor
return true guards.
evalRandomStmts(List<Gl.Tree.Guard>, Env) - Static method in class Tree
evaluate tail of randomly selected guard.
evalRandomStmts(List<Gl.Tree.Guard>) - Method in class Visitor
evaluate tail of randomly selected guard.
evalStmts(List, int, Env) - Static method in class Tree
evaluate tail of list.
evalStmts(List, int) - Method in class Visitor
evaluate tail of list.
expr - Variable in class Tree.Function
 
expr - Static variable in class Eval
 
expr - Static variable in class Tree
 
extract(Parser.Sequence) - Method in class RfcBuilder
return sequence or singleton descendant.

F

f - Variable in class Tree.Invocation
 
f(Object) - Method in interface Fold
 
f(Input) - Method in interface ParserFunction
 
f(Object) - Method in interface Scope
 
factory(PrintWriter, Parser) - Static method in class Gen
generate tree factory.
factory(PrintWriter, Parser, String) - Static method in class Gen
generate tree factory.
factory - Variable in class RfcBuilder
 
fail(String) - Static method in class Parser
create a parser which fails with a message.
failed - Variable in class Result
 
firstSymbol - Static variable in interface Symbols
ParserFactory will assign the symbol values beginning with this one.
flatten - Variable in class Parser.Type
true if factory method can squeeze this out in favor of a single descendant.
Fold - Interface in mops
used as argument to foldl.
foldl(Object, Object) - Static method in class Parser
applies a list of functions to a value.
follow - Variable in class Dump
not null to dump follow sets.
Follow - Class in oops3
ParserFactory aspect: compute follow sets.
Follow(Parser) - Constructor for class Follow
compute follow sets for parser: set endOfFile for start rule; keep propagating until nothing changes.
follow - Variable in class LL1
follow sets.
follows - Variable in class Follow
follow sets, indexed by Node.lookahead.
format(String, Object...) - Static method in class Mops
format a string from the resource file.
format(String, Object...) - Static method in class Gen
format a string from the resource file.
fromString(String) - Static method in class Utils
return internal representation of the characters of an external string.
fun - Variable in class Tree.Variable
 
function(int, List) - Method in class Build
function: head expression;
complete the function definition.
Function(String) - Method in class Tree
factory method.
Function(Tree.Variable) - Method in class Tree
factory method.
Function(Tree.Variable, Tree.Expression) - Method in class Tree
factory method.
functional - Variable in class Main
set to use functional parser.

G

ge(int, List) - Method in class Gl.Tree
factory method.
ge(int, List) - Method in class Tree
factory method.
gen(StringBuilder) - Method in class Mops.Blank
add wrapped value.
gen(StringBuilder) - Method in interface Mops.Gen
contribute to code.
gen(StringBuilder) - Method in class Mops.Jsm
delegate and concatenate.
gen(StringBuilder) - Method in class Mops.Monad
Mvalues .orElse(Mvalues) ...
gen(StringBuilder, List<Mops.Mvalue>, int) - Method in class Mops.Mvalue
Blank?
gen(StringBuilder) - Method in class Mops.Mvalues
start to recursively translate Mvalue.
gen(StringBuilder) - Method in class Mops.Paren
delegate to content and concatenate.
gen(StringBuilder) - Method in class Mops.Text
add wrapped value.
gen(StringBuilder) - Method in class Mops.Trees
public static class word extends mops.Node {
public word (Object... arg) { super(arg); } }
Gen - Class in oops3
ParserFactory aspect: generate source code.
Gen() - Constructor for class Gen
 
get() - Method in class Env.DenotedValue
current value.
get(int) - Method in class Gl.Tree.Add
 
get(int) - Method in class Gl.Tree.AndIf
 
get(int) - Method in class Gl.Tree.Assign
 
get(int) - Method in class Gl.Tree.Deref
 
get(int) - Method in class Gl.Tree.Div
 
get(int) - Method in class Gl.Tree.Eq
 
get(int) - Method in class Gl.Tree.Ge
 
get(int) - Method in class Gl.Tree.Gt
 
get(int) - Method in class Gl.Tree.Guard
 
get(int) - Method in class Gl.Tree.Le
 
get(int) - Method in class Gl.Tree.Lit
 
get(int) - Method in class Gl.Tree.Loop
 
get(int) - Method in class Gl.Tree.Lt
 
get(int) - Method in class Gl.Tree.Mul
 
get(int) - Method in class Gl.Tree.Ne
 
get(int) - Method in class Gl.Tree.OrIf
 
get(int) - Method in class Gl.Tree.Print
 
get(int) - Method in class Gl.Tree.Rem
 
get(int) - Method in class Gl.Tree.Select
 
get(int) - Method in class Gl.Tree.Stmt
 
get(int) - Method in class Gl.Tree.Sub
 
get(int) - Method in class Gl.Tree.Var
 
get(int) - Method in class Gl.Tree.With
 
get - Static variable in class Parser
a parser which succeeds with the current input as a value.
get(int) - Method in class Parser.Group
 
get(int) - Method in class Parser.Node
needs to be overridden when there are descendants.
get(int) - Method in class Parser.Rule
 
getDelimiter() - Method in class Parser.Delimit
 
getDelimiter() - Method in class Parser.PermutedList
 
getError() - Method in class Utils
 
getFlatten() - Method in class Parser.Type
 
getFollow(Parser.Node) - Method in class Follow
returns the follow set of a node (which may be empty).
getInterfaces() - Method in class Parser.Type
returns empty string or comma-preceeded list of names.
getLookahead() - Method in class Parser.Node
throws an exception if Lookahead has not been run or if Parser.Node.lookahead was initialized out of range.
getName() - Method in class Parser.Binding
 
getName() - Method in class Parser.Type
returns empty string or type name.
getPattern() - Method in class Parser.Pattern
 
getPattern() - Method in class Parser.Token
 
getPosition() - Method in class Gl.Tree.Add
 
getPosition() - Method in class Gl.Tree.AndIf
 
getPosition() - Method in class Gl.Tree.Assign
 
getPosition() - Method in class Gl.Tree.Deref
 
getPosition() - Method in class Gl.Tree.Div
 
getPosition() - Method in class Gl.Tree.Eq
 
getPosition() - Method in class Gl.Tree.Ge
 
getPosition() - Method in class Gl.Tree.Gt
 
getPosition() - Method in class Gl.Tree.Guard
 
getPosition() - Method in class Gl.Tree.Le
 
getPosition() - Method in class Gl.Tree.Lit
 
getPosition() - Method in class Gl.Tree.Loop
 
getPosition() - Method in class Gl.Tree.Lt
 
getPosition() - Method in class Gl.Tree.Mul
 
getPosition() - Method in class Gl.Tree.Ne
 
getPosition() - Method in class Gl.Tree.OrIf
 
getPosition() - Method in class Gl.Tree.Print
 
getPosition() - Method in class Gl.Tree.Rem
 
getPosition() - Method in class Gl.Tree.Select
 
getPosition() - Method in class Gl.Tree.Stmt
 
getPosition() - Method in class Gl.Tree.Sub
 
getPosition() - Method in class Gl.Tree.Var
 
getPosition() - Method in class Gl.Tree.With
 
getPosition() - Method in class Node
for compatibility with oops3.
getPosition() - Method in class Parser.Node
 
getPosition() - Method in class Buffer.InputImpl
returns lineNo.
getPosition() - Method in interface Input
current position, usually a line number.
getPosition() - Method in class Scanner
accessor, valid only after Scanner.advance(scanner.Input).
getRule() - Method in class Parser.Nonterminal
 
getSymbol(String) - Method in class Parser
lookup symbol value of Literal.
getSymbol() - Method in class Parser.Literal
 
getSymbol() - Method in class Parser.Pattern
 
getSymbol() - Method in class Parser.Terminal
return the representation, i.e., a bit number in getLookahead().
getSymbol() - Method in class Parser.Token
obtained from Parser.Token.pattern.
getSymbol(String) - Method in interface Scanner.Lookup
return symbol number for a Literal.
getToken(String) - Method in class Parser
lookup symbol value of Pattern.
getToken(String) - Method in interface Scanner.Lookup
return symbol number for a Token name (inefficient).
getType() - Method in class Parser.Binding
 
getValue() - Method in class Parser.Literal
 
getVar() - Method in class Tree.Function
returns variable, needed to implement block structure.
gl - package gl
Example: two interpreters for the Guarded Language.
Gl - Class in gl
 
Gl() - Constructor for class Gl
 
Gl.Tree - Class in gl
tree factory
Gl.Tree() - Constructor for class Gl.Tree
 
Gl.Tree.Add - Class in gl
tree node class.
Gl.Tree.Add(int, List) - Constructor for class Gl.Tree.Add
 
Gl.Tree.AndIf - Class in gl
tree node class.
Gl.Tree.AndIf(int, List) - Constructor for class Gl.Tree.AndIf
 
Gl.Tree.Assign - Class in gl
tree node class.
Gl.Tree.Assign(int, List) - Constructor for class Gl.Tree.Assign
 
Gl.Tree.Deref - Class in gl
tree node class.
Gl.Tree.Deref(int, List) - Constructor for class Gl.Tree.Deref
 
Gl.Tree.Div - Class in gl
tree node class.
Gl.Tree.Div(int, List) - Constructor for class Gl.Tree.Div
 
Gl.Tree.Eq - Class in gl
tree node class.
Gl.Tree.Eq(int, List) - Constructor for class Gl.Tree.Eq
 
Gl.Tree.Ge - Class in gl
tree node class.
Gl.Tree.Ge(int, List) - Constructor for class Gl.Tree.Ge
 
Gl.Tree.Gt - Class in gl
tree node class.
Gl.Tree.Gt(int, List) - Constructor for class Gl.Tree.Gt
 
Gl.Tree.Guard - Class in gl
tree node class.
Gl.Tree.Guard(int, List) - Constructor for class Gl.Tree.Guard
 
Gl.Tree.Le - Class in gl
tree node class.
Gl.Tree.Le(int, List) - Constructor for class Gl.Tree.Le
 
Gl.Tree.Lit - Class in gl
tree node class.
Gl.Tree.Lit(int, List) - Constructor for class Gl.Tree.Lit
 
Gl.Tree.Loop - Class in gl
tree node class.
Gl.Tree.Loop(int, List) - Constructor for class Gl.Tree.Loop
 
Gl.Tree.Lt - Class in gl
tree node class.
Gl.Tree.Lt(int, List) - Constructor for class Gl.Tree.Lt
 
Gl.Tree.Mul - Class in gl
tree node class.
Gl.Tree.Mul(int, List) - Constructor for class Gl.Tree.Mul
 
Gl.Tree.Ne - Class in gl
tree node class.
Gl.Tree.Ne(int, List) - Constructor for class Gl.Tree.Ne
 
Gl.Tree.OrIf - Class in gl
tree node class.
Gl.Tree.OrIf(int, List) - Constructor for class Gl.Tree.OrIf
 
Gl.Tree.Print - Class in gl
tree node class.
Gl.Tree.Print(int, List) - Constructor for class Gl.Tree.Print
 
Gl.Tree.Rem - Class in gl
tree node class.
Gl.Tree.Rem(int, List) - Constructor for class Gl.Tree.Rem
 
Gl.Tree.Select - Class in gl
tree node class.
Gl.Tree.Select(int, List) - Constructor for class Gl.Tree.Select
 
Gl.Tree.Stmt - Class in gl
tree node class.
Gl.Tree.Stmt(int, List) - Constructor for class Gl.Tree.Stmt
 
Gl.Tree.Sub - Class in gl
tree node class.
Gl.Tree.Sub(int, List) - Constructor for class Gl.Tree.Sub
 
Gl.Tree.Var - Class in gl
tree node class.
Gl.Tree.Var(int, List) - Constructor for class Gl.Tree.Var
 
Gl.Tree.Visit - Interface in gl
what each tree class will do.
Gl.Tree.Visitor - Interface in gl
what a visitor must do: receive each tree class separately.
Gl.Tree.With - Class in gl
tree node class.
Gl.Tree.With(int, List) - Constructor for class Gl.Tree.With
 
Gl.yyLex - Class in gl
 
Gl.yyLex(Reader) - Constructor for class Gl.yyLex
 
Gl.yyLex(InputStream) - Constructor for class Gl.yyLex
 
Gl.yyLex() - Constructor for class Gl.yyLex
 
Grammar - Class in oops3
ParserFactory aspect: recover grammar from parser tree.
Grammar(Parser) - Constructor for class Grammar
 
grammar(PrintWriter) - Method in class Grammar
output XBNF-style grammar.
gt(int, List) - Method in class Gl.Tree
factory method.
gt(int, List) - Method in class Tree
factory method.
guard(int, List) - Method in class Gl.Tree
factory method.

H

head(int, List) - Method in class Build
head: 'lambda' '(' Id ')';
create a function with a bound variable.

I

id - Variable in class Tree
if true, show names together with a unique id suffix.
id - Variable in class Tree.Variable
 
ids - Variable in class Build
symbol table: map variable name to Tree.Expression tree.
indent - Variable in class Dump
current indentation.
indent - Variable in class MopsGen
indentation.
indent(String, Object...) - Method in class MopsGen
indent, format, and print a string from the resource file.
indent - Variable in class Observe.Wrapper
indentation.
INFINITY - Static variable in class Parser.Repeat
repeat any number of times.
init(int, String) - Method in interface Observe.Observer
called when a rule is activated.
init(int, Parser.Type, Parser.Node) - Method in class Parser.Rule
 
init(Parser, String, String) - Method in class ParserFactory
transfers into Parser.patterns, Parser.rules, and Parser.lookaheads.
input - Variable in class Result
 
Input - Interface in scanner
what an input provider must do.
input - Variable in class Scanner
current input, see Scanner.advance(scanner.Input).
interfaces - Variable in class Parser.Type
interface names.
invocation(int, List) - Method in class Build
invocation: expression expression;
Invocation(Tree.Expression, Tree.Expression) - Method in class Tree
factory method.
invoke(Tree.Expression) - Method in class Tree.Function
recursively substitutes argument for function's variable in function's expression.
invoke(Object, Method, Object[]) - Method in class Observe.Wrapper
 
isLeft() - Method in class Parser.Type
true if left-asssociative build.
isPlain() - Method in class Parser.Type
true if type is just a name without interfaces or options.
isTrue(String, boolean) - Method in class Main
mark unexpected false as an error.
item(int, List) - Method in class RfcBuilder
item: Id | literal | '(' xor ')';

J

jlex(PrintWriter, Parser) - Static method in class Gen
generate JLex-based scanner.
jlexSource(PrintWriter, Parser) - Static method in class Gen
generate source of JLex-based scanner.
Jsm(Object...) - Method in class Mops
factory method.
jsm - Static variable in class MopsParser
 

L

lambda - package lambda
Example: two input languages and an interpreter for the Lambda Calculus -- with thanks to Andreas Borchert.
Lambda - Class in lambda
Lambda calculus.
Lambda() - Constructor for class Lambda
 
Lambda.yyLex - Class in lambda
 
Lambda.yyLex(Reader) - Constructor for class Lambda.yyLex
 
Lambda.yyLex(InputStream) - Constructor for class Lambda.yyLex
 
Lambda.yyLex() - Constructor for class Lambda.yyLex
 
Language - Interface in mops
describe a programming language for ParserFactory.
le(int, List) - Method in class Gl.Tree
factory method.
le(int, List) - Method in class Tree
factory method.
length - Variable in class Buffer
current input length.
lineNo - Variable in class Node
 
lineNo(Object) - Static method in class MopsGen
try to obtain a position by reflecting on getPosition.
lineNo - Variable in class Buffer.InputImpl
 
literal - Static variable in interface Arithmetic
 
literal - Static variable in interface Language
 
literal(String) - Method in class ParserFactory
create a Parser to accept a literal string.
literal(int, String) - Method in class ParserFactory
factory method: maintains ParserFactory.nextSymbol, ParserFactory.literals, ParserFactory.lookaheads.
literal(int, List) - Method in class RfcBuilder
literal: String;
literals - Variable in class Parser
collects Literal strings.
literals - Variable in class ParserFactory
access to Parser.literals.
literals - Variable in class Scanner
maps literals to token numbers.
LL1 - Class in oops3
ParserFactory aspect: check LL(1).
LL1(Parser, Follow) - Constructor for class LL1
 
ll1() - Method in class LL1
returns true if LL(1) check succeeds.
lookahead - Variable in class Dump
true to dump lookahead sets.
Lookahead - Class in oops3
ParserFactory aspect: compute lookahead sets.
Lookahead(Parser) - Constructor for class Lookahead
 
lookahead() - Method in class Lookahead
add lookahead sets to Parser.
lookahead - Variable in class Parser.Node
references Parser.lookaheads.
lookaheads - Variable in class Parser
lookahead sets: Each list element denotes a set of symbols which is the lookahead for a Node.
lookaheads - Variable in class ParserFactory
mutable version of Parser.lookaheads.
lookup - Variable in class Gl.yyLex
reference to Parser to look up symbols for literals.
lookup - Variable in class Lambda.yyLex
reference to Parser to look up symbols for literals.
lookup - Variable in class Scheme.yyLex
reference to Parser to look up symbols for literals.
lookup - Variable in class yyLex
reference to Parser to look up symbols for literals.
loop(int, List) - Method in class Gl.Tree
factory method.
loop(int, List) - Method in class Tree
factory method.
lt(int, List) - Method in class Gl.Tree
factory method.
lt(int, List) - Method in class Tree
factory method.

M

main(String[]) - Static method in class Gl
compiles standard input, serializes to standard output.
main(String...) - Static method in class Gl.yyLex
test driver.
main(String[]) - Static method in class Tree
main program to compile and interpret a Guarded Language program.
main(String[]) - Static method in class Visitor
main program to compile and interpret a Guarded Language program.
main(String...) - Static method in class Lambda
interpret standard input.
main(String...) - Static method in class Lambda.yyLex
test driver.
main(String...) - Static method in class Scheme
interpret standard input.
main(String...) - Static method in class Scheme.yyLex
test driver.
main(String...) - Static method in class Axioms
 
main(String...) - Static method in class Eval
 
main(String...) - Static method in class Mops
convert monadic notation from standard input into Java.
main(String...) - Static method in class Scanners
 
main(String...) - Static method in class Tree
 
main(String[]) - Static method in class Boot
manually builds a RFC-style grammar for EBNF over ParserFactory and serializes the grammar tree to standard output.
main(PrintWriter, String, boolean, String) - Static method in class Gen
output main program for compiler.
Main - Class in oops3
command line for the parser generator (only the first letter of each option is significant).
Main() - Constructor for class Main
 
main(String...) - Static method in class Main
run a command line, exit code 1 if there was an error or exception.
main(PrintWriter, boolean, String) - Method in class MopsGen
output main program for compiler.
main(String...) - Static method in class Test
illustration: create and test scanners.
many() - Method in class Parser
create a parser which will apply the receiver as often as possible and return all results (or none) as an ArrayList.
many(int, Parser.Node...) - Method in class ParserFactory
convenience method: repeat zero or more times.
many(int, List) - Method in class RfcBuilder
many: '*' list?
map - Variable in class Env
maps id to value.
map - Variable in class Main
a bit of a hack: commands is used recursively.
marked - Variable in class Follow
per Rule: set to indicate that rule needs to be traversed again.
marked - Variable in class Lookahead
shallow pass: marks rules to detect left recursion; deep pass: marks rules to detect unconnected rules.
marked - Variable in class Recursive
used to detect recursion.
max - Variable in class Tree
maximum number of steps; zero means no limit.
max - Variable in class Parser.Permute
range for each alternative.
max - Variable in class Parser.Repeat
repeat range.
mCollect - Static variable in class MopsGen
member names, not null once used.
mCollect() - Static method in class MopsGen
accessor for collector name.
message(String) - Method in class Utils
should be overwritten to redirect all messages.
mf - Static variable in class MopsParser
 
min - Variable in class Parser.Permute
range for each alternative.
min - Variable in class Parser.Repeat
repeat range.
mMany - Static variable in class MopsGen
member names, not null once used.
mMany() - Static method in class MopsGen
accessor for combinator name.
mManyList - Static variable in class MopsGen
member names, not null once used.
mManyList() - Static method in class MopsGen
accessor for combinator name.
mNone - Static variable in class MopsGen
member names, not null once used.
mNone() - Static method in class MopsGen
accessor for name representing empty input.
Monad(Object...) - Method in class Mops
factory method.
monad - Static variable in class MopsParser
 
mops - package mops
Monadic LL(n) parser generator system, based on Monadic Parsing using JavaScript .
Mops - Class in mops
preprocessor for monadic notation, tree factory for classes implementing code generation.
Mops() - Constructor for class Mops
 
Mops.Blank - Class in mops
wraps normalized white space.
Mops.Blank(Object...) - Constructor for class Mops.Blank
 
Mops.Gen - Interface in mops
what the tree classes must do (but for Mvalue).
Mops.Jsm - Class in mops
Jsm: (Blank|Monad|Paren|Text)+
Mops.Jsm(Object...) - Constructor for class Mops.Jsm
 
Mops.Monad - Class in mops
Monad: Mvalues+
Mops.Monad(Object...) - Constructor for class Mops.Monad
 
Mops.Mvalue - Class in mops
Mvalue: Blank?
Mops.Mvalue(Object...) - Constructor for class Mops.Mvalue
 
Mops.Mvalues - Class in mops
Mvalues: Mvalue+
Mops.Mvalues(Object...) - Constructor for class Mops.Mvalues
 
Mops.Paren - Class in mops
Paren: lpar (Blank|Monad|Paren|Text)* rpar
Mops.Paren(Object...) - Constructor for class Mops.Paren
 
Mops.Text - Class in mops
wraps a string.
Mops.Text(Object...) - Constructor for class Mops.Text
 
Mops.Trees - Class in mops
Trees: Blank?
Mops.Trees(Object...) - Constructor for class Mops.Trees
 
MopsGen - Class in oops3
ParserFactory aspect: generate functional source code.
MopsGen(Parser) - Constructor for class MopsGen
create visitor to generate functional code.
MopsParser - Class in mops
 
MopsParser() - Constructor for class MopsParser
 
MopsParser.Blank - Class in mops
 
MopsParser.Blank(Object...) - Constructor for class MopsParser.Blank
 
MopsParser.Jsm - Class in mops
 
MopsParser.Jsm(Object...) - Constructor for class MopsParser.Jsm
 
MopsParser.Monad - Class in mops
 
MopsParser.Monad(Object...) - Constructor for class MopsParser.Monad
 
MopsParser.Mvalue - Class in mops
 
MopsParser.Mvalue(Object...) - Constructor for class MopsParser.Mvalue
 
MopsParser.Mvalues - Class in mops
 
MopsParser.Mvalues(Object...) - Constructor for class MopsParser.Mvalues
 
MopsParser.Paren - Class in mops
 
MopsParser.Paren(Object...) - Constructor for class MopsParser.Paren
 
MopsParser.Text - Class in mops
 
MopsParser.Text(Object...) - Constructor for class MopsParser.Text
 
MopsParser.Trees - Class in mops
 
MopsParser.Trees(Object...) - Constructor for class MopsParser.Trees
 
mOptional - Static variable in class MopsGen
member names, not null once used.
mOptional() - Static method in class MopsGen
accessor for combinator name.
mScanner - Static variable in class MopsGen
member names, not null once used.
mScanner() - Static method in class MopsGen
accessor for scanner name.
mSome - Static variable in class MopsGen
member names, not null once used.
mSome() - Static method in class MopsGen
accessor for combinator name.
mSomeList - Static variable in class MopsGen
member names, not null once used.
mSomeList() - Static method in class MopsGen
accessor for combinator name.
mTree - Static variable in class MopsGen
member names, not null once used.
mTree() - Static method in class MopsGen
accessor for tree factory name.
mul(int, List) - Method in class Gl.Tree
factory method.
mul(int, List) - Method in class Tree
factory method.
Mvalue(Object...) - Method in class Mops
factory method.
mvalue - Static variable in class MopsParser
 
Mvalues(Object...) - Method in class Mops
factory method.
mvalues - Static variable in class MopsParser
 

N

name - Variable in class Tree.Variable
 
name - Variable in class Parser.Binding
unique name.
name - Variable in class Parser.Type
class name (or void); empty string to indicate left-associative build.
ne(int, List) - Method in class Gl.Tree
factory method.
ne(int, List) - Method in class Tree
factory method.
newInput(StringBuilder) - Static method in class Buffer
create an initial wrapper for a StringBuilder.
newInput(String) - Static method in class Buffer
convenience method: create an initial wrapper for a string.
newInput(StringBuilder) - Static method in class ClonedBuffer
create an initial wrapper for a StringBuilder.
newInput(String) - Static method in class ClonedBuffer
convenience method: create an initial wrapper for a string.
newInput(BufferedReader) - Static method in class ClonedStream
create an initial wrapper for a BufferedReader.
newInput(InputStream) - Static method in class ClonedStream
convenience method: create an initial wrapper for an InputStream.
newInput(BufferedReader) - Static method in class Stream
create an initial wrapper for a BufferedReader.
newInput(InputStream) - Static method in class Stream
convenience method: create an initial wrapper for an InputStream.
newParser(ParserFunction) - Method in class ParserFactory
factory method, hook for subclass.
nextSymbol - Variable in class ParserFactory
next unique, positive number to represent a Terminal.
nLiterals - Variable in class Scanner
defines token range.
Node - Class in mops
base class for tree representation.
Node(Object...) - Constructor for class Node
 
nodes - Variable in class Gl.Tree.Add
mutable body.
nodes - Variable in class Gl.Tree.AndIf
mutable body.
nodes - Variable in class Gl.Tree.Assign
mutable body.
nodes - Variable in class Gl.Tree.Deref
mutable body.
nodes - Variable in class Gl.Tree.Div
mutable body.
nodes - Variable in class Gl.Tree.Eq
mutable body.
nodes - Variable in class Gl.Tree.Ge
mutable body.
nodes - Variable in class Gl.Tree.Gt
mutable body.
nodes - Variable in class Gl.Tree.Guard
mutable body.
nodes - Variable in class Gl.Tree.Le
mutable body.
nodes - Variable in class Gl.Tree.Lit
mutable body.
nodes - Variable in class Gl.Tree.Loop
mutable body.
nodes - Variable in class Gl.Tree.Lt
mutable body.
nodes - Variable in class Gl.Tree.Mul
mutable body.
nodes - Variable in class Gl.Tree.Ne
mutable body.
nodes - Variable in class Gl.Tree.OrIf
mutable body.
nodes - Variable in class Gl.Tree.Print
mutable body.
nodes - Variable in class Gl.Tree.Rem
mutable body.
nodes - Variable in class Gl.Tree.Select
mutable body.
nodes - Variable in class Gl.Tree.Stmt
mutable body.
nodes - Variable in class Gl.Tree.Sub
mutable body.
nodes - Variable in class Gl.Tree.Var
mutable body.
nodes - Variable in class Gl.Tree.With
mutable body.
nodes - Variable in class Parser.Group
descendants
noInput() - Method in class Build
override processing of noInput: if Build.addNull, add null to current collection.
noInput() - Method in class Recognize
process noInput: do nothing.
noInput - Static variable in interface Symbols
symbol: represents the fact in a lookahead set that no input is acceptable.
nonterminal(int, String) - Method in class ParserFactory
factory method.
nonterminals - Variable in class ParserFactory
maps Nonterminal name to index in ParserFactory.rules.
notNull(String, Object) - Method in class Main
mark unexpected null pointer as an error.
noType() - Method in class Parser.Binding
true if there is a null or [vV]oid type.
noType(Parser.Type) - Static method in class Parser
true if there is a null or [vV]oid type.
nPatterns - Variable in class Scanner
defines token range.
number(int, List) - Method in class Gl.Tree
factory method.
number(int, List) - Method in class Tree
factory method.
number - Static variable in class Eval
 
number - Static variable in class Tree
 

O

Observe - Class in oops3
ParserFactory aspect: observe recognition.
Observe(Parser) - Constructor for class Observe
 
observe(Scanner, Observe.Observer) - Method in class Observe
delegate to recognize.
Observe.Adapter - Class in oops3
implements an observer that does nothing.
Observe.Adapter() - Constructor for class Observe.Adapter
 
Observe.Observer - Interface in oops3
what an observer must do.
Observe.Wrapper - Class in oops3
traces any Observe.Observer.
Observe.Wrapper(PrintWriter, Observe.Observer, String) - Constructor for class Observe.Wrapper
 
observer - Variable in class Observe
current observer.
observer - Variable in class Observe.Wrapper
the wrapped observer to which all operations are delegated.
offset - Variable in class Buffer.InputImpl
 
oops3 - package oops3
The oops3 parser generator.
optional(Object) - Method in class Parser
create a parser which will apply the receiver and, if it fails, succeed with the given value.
optional(int, Parser.Node...) - Method in class ParserFactory
convenience method: repeat at most once.
optional(int, List) - Method in class RfcBuilder
optional: '?'
optionalItem(int, List) - Method in class EbnfBuilder
optionalItem: '[' alt ']';
or(int, Parser.Node...) - Method in class ParserFactory
factory method.
or(int, List) - Method in class XbnfBuilder
or: '[' xors ',' xors +/ ',' ']' list?
orElse(Parser) - Method in class Parser
alternative execution: create a parser which will apply the receiver and, if it fails, the argument.
orif(int, List) - Method in class Gl.Tree
factory method.
orif(int, List) - Method in class Tree
factory method.
orList(int, Parser.Node, Parser.Node...) - Method in class ParserFactory
factory method.
out - Variable in class Dump
where the output goes.
out - Variable in class Grammar
where the output goes.
out - Variable in class Main
 
out - Variable in class MopsGen
where the output goes.
out - Variable in class Observe.Wrapper
where the output goes.

P

Paren(Object...) - Method in class Mops
factory method.
parse(Input) - Method in class Parser
apply the parser function to advance in the input.
Parser - Class in mops
wraps a ParserFunction.
Parser(ParserFunction) - Constructor for class Parser
 
parser - Variable in class Dump
parser to be printed.
parser - Variable in class Follow
parser to be augmented.
parser - Variable in class Grammar
parser to be printed.
parser - Variable in class LL1
parser to be checked.
parser - Variable in class Lookahead
parser to be augmented.
parser - Variable in class MopsGen
parser to be generated.
Parser - Class in oops3
represents literals, patterns, and rules of a grammar.
Parser() - Constructor for class Parser
should only be created by ParserFactory and set up using package access.
parser - Variable in class ParserFactory
parser to be delivered, context for all creations.
parser(String, String) - Method in class ParserFactory
factory method: initializes and returns ParserFactory.parser or null if there was an ParserFactory.error.
parser - Variable in class Recognize
parser to use.
parser - Variable in class Recursive
parser to be checked.
parser(List) - Method in class RfcBuilder
parser: Prolog rule+ Epilog;
Parser.And - Class in oops3
represents a complete, unordered selection among two or more Nodes.
Parser.And(int, int, Parser.Node...) - Constructor for class Parser.And
 
Parser.AndList - Class in oops3
represents a complete, unordered, delimited selection among two or more Nodes.
Parser.AndList(int, int, Parser.Node, Parser.Node...) - Constructor for class Parser.AndList
 
Parser.Binding<V> - Class in oops3
represents a binding (type and generic value) for a name.
Parser.Binding(int, int, String, Parser.Type, V) - Constructor for class Parser.Binding
 
Parser.Delimit - Class in oops3
represents an iterated collection of Nodes with delimiters.
Parser.Delimit(int, int, int, Parser.Node, Parser.Node, int) - Constructor for class Parser.Delimit
 
Parser.Group - Class in oops3
base class for collections of Nodes.
Parser.Group(int, int, Parser.Node...) - Constructor for class Parser.Group
 
Parser.Literal - Class in oops3
represents a literal input, not to be collected.
Parser.Literal(int, String, int, int) - Constructor for class Parser.Literal
 
Parser.Node - Class in oops3
basic behavior for the grammar tree: an immutable List with lookahead.
Parser.Node(int, int) - Constructor for class Parser.Node
 
Parser.Nonterminal - Class in oops3
represents a reference to a Rule.
Parser.Nonterminal(int, int, int) - Constructor for class Parser.Nonterminal
 
Parser.Or - Class in oops3
represents an inclusive selection among two or more Nodes.
Parser.Or(int, int, Parser.Node...) - Constructor for class Parser.Or
 
Parser.OrList - Class in oops3
represents an inclusive selection among two or more Nodes.
Parser.OrList(int, int, Parser.Node, Parser.Node...) - Constructor for class Parser.OrList
 
Parser.Pattern - Class in oops3
represents a binding (type and pattern string) for a Token name.
Parser.Pattern(int, int, String, Parser.Type, String, int) - Constructor for class Parser.Pattern
 
Parser.Permute - Class in oops3
base class for unordered selections among two or more Nodes.
Parser.Permute(int, int, Parser.Node...) - Constructor for class Parser.Permute
 
Parser.PermutedList - Class in oops3
base class for unordered, delimited selections among two or more Nodes.
Parser.PermutedList(int, int, Parser.Node, Parser.Node...) - Constructor for class Parser.PermutedList
 
Parser.Repeat - Class in oops3
represents an iterated collection of Nodes.
Parser.Repeat(int, int, int, int, Parser.Node...) - Constructor for class Parser.Repeat
 
Parser.Rule - Class in oops3
represents a binding (type and right-hand side node) for a Nonterminal name.
Parser.Rule(int, int, String, Parser.Type, Parser.Node) - Constructor for class Parser.Rule
 
Parser.Sequence - Class in oops3
represents a sequence of Nodes.
Parser.Sequence(int, int, Parser.Node...) - Constructor for class Parser.Sequence
 
Parser.Terminal - Class in oops3
base class for input symbols, i.e., Literal and Token.
Parser.Terminal(int, int) - Constructor for class Parser.Terminal
 
Parser.Token - Class in oops3
represents a reference to a Pattern.
Parser.Token(int, int, int) - Constructor for class Parser.Token
 
Parser.Type - Class in oops3
represents type information.
Parser.Type(String, boolean, String[]) - Constructor for class Parser.Type
 
Parser.Xor - Class in oops3
represents an exclusive selection among two or more Nodes.
Parser.Xor(int, int, Parser.Node...) - Constructor for class Parser.Xor
 
ParserException - Exception in mops
thrown on abuse only.
ParserException(String) - Constructor for exception ParserException
 
ParserFactory - Class in mops
generates Parsers.
ParserFactory(String[], String[], String[]) - Constructor for class ParserFactory
construct the scanning engine, see Scanner.
ParserFactory - Class in oops3
factory to construct a Parser.
ParserFactory() - Constructor for class ParserFactory
 
parserFunction - Variable in class Parser
 
ParserFunction - Interface in mops
wrapped by a Parser, executed by parse.
parserResource - Static variable in class Gl
kludge: scanner test driver needs to know.
parserResource - Static variable in class Lambda
serialized parser.
parserResource - Static variable in class Scheme
serialized parser.
pattern - Static variable in interface Arithmetic
 
pattern - Static variable in interface Language
 
pattern(int) - Method in class ParserFactory
create a Parser to accept a pattern match.
pattern - Variable in class Parser.Token
references Parser.patterns.
pattern(int, String, Parser.Type, String) - Method in class ParserFactory
factory method: maintains ParserFactory.nextSymbol, ParserFactory.tokens, ParserFactory.patterns, ParserFactory.lookaheads.
patterns(PrintWriter) - Method in class MopsGen
output parser instances for token patterns.
patterns - Variable in class Parser
one Pattern per Token name in order of definition.
patterns - Variable in class ParserFactory
mutable version of Parser.patterns.
permute(Parser.Permute, int) - Method in class Build
override processing of an alternative of Permute: arrange to collect into collection for alternative.
permute(Parser.Permute, int) - Method in class Recognize
process an alternative of Permute.
permutedList(Parser.PermutedList, int, int) - Method in class Build
override processing of an alternative of PermutedList.
permutedList(Parser.PermutedList, int, int) - Method in class Recognize
process an alternative of PermutedList.
pf - Static variable in class MopsParser
 
position - Variable in class Gl.Tree.Add
associated input position.
position - Variable in class Gl.Tree.AndIf
associated input position.
position - Variable in class Gl.Tree.Assign
associated input position.
position - Variable in class Gl.Tree.Deref
associated input position.
position - Variable in class Gl.Tree.Div
associated input position.
position - Variable in class Gl.Tree.Eq
associated input position.
position - Variable in class Gl.Tree.Ge
associated input position.
position - Variable in class Gl.Tree.Gt
associated input position.
position - Variable in class Gl.Tree.Guard
associated input position.
position - Variable in class Gl.Tree.Le
associated input position.
position - Variable in class Gl.Tree.Lit
associated input position.
position - Variable in class Gl.Tree.Loop
associated input position.
position - Variable in class Gl.Tree.Lt
associated input position.
position - Variable in class Gl.Tree.Mul
associated input position.
position - Variable in class Gl.Tree.Ne
associated input position.
position - Variable in class Gl.Tree.OrIf
associated input position.
position - Variable in class Gl.Tree.Print
associated input position.
position - Variable in class Gl.Tree.Rem
associated input position.
position - Variable in class Gl.Tree.Select
associated input position.
position - Variable in class Gl.Tree.Stmt
associated input position.
position - Variable in class Gl.Tree.Sub
associated input position.
position - Variable in class Gl.Tree.Var
associated input position.
position - Variable in class Gl.Tree.With
associated input position.
position() - Method in class Gl.yyLex
current line number, based at 1.
position() - Method in class Lambda.yyLex
current line number, based at 1.
position() - Method in class Scheme.yyLex
current line number, based at 1.
position(Object, String) - Static method in class Dump
try to obtain a position by reflecting on getPosition.
position - Variable in class Parser.Node
position associated with node.
position(int) - Method in class ParserFactory
returns string with nonzero position, if any.
position() - Method in interface Scanner
position associated with current token.
position() - Method in class yyLex
current line number, based at 1.
prev - Variable in class Env
previous environment, if any.
print(int, List) - Method in class Gl.Tree
factory method.
print(int, List) - Method in class Tree
factory method.
product - Static variable in class Eval
 
product - Static variable in class Tree
 
prolog(PrintWriter, Parser) - Static method in class Gen
output prolog.
prolog - Variable in class Parser
prolog and epilog code.
propagate(Parser.Group, BitSet) - Method in class Follow
from back to front for each descendant of a Group: send current follow set to descendant and ask it to propagate; if lookahead of descendant accepts empty input add that lookahead to current follow set and remove empty input, else set that lookahead as new current follow set.
put(Object, Input) - Static method in class Parser
create a parser which succeeds with the given value and input.

Q

quoted - Static variable in class MopsParser
 

R

range(int, int, int, Parser.Node) - Method in class XbnfBuilder
returns Repeator to call ParserFactory.repeat or ParserFactory.delimit, or the Repeator created by the alternatives.
range1(int, List) - Method in class XbnfBuilder
range1: Number ( '..'
range2(int, List) - Method in class XbnfBuilder
range2: '..' ( Number?
raw - Variable in class yyLex
collect prolog and epilog.
read() - Method in class Buffer.InputImpl
false, buffer will not be lengthened.
read() - Method in interface Input
true if input has been lengthened.
read() - Method in class Stream.InputImpl
true as long as reader supplies more lines.
reader - Variable in class Stream
while not null: might get more input.
Recognize - Class in oops3
ParserFactory aspect: recognize input.
Recognize(Parser) - Constructor for class Recognize
 
recognize(Scanner) - Method in class Recognize
advance the scanner to the first token that matches the lookahead of the start rule and visit this rule; afterwards match parsing to the end of file.
Recursive - Class in oops3
ParserFactory aspect: check each rule for unlimited recursion.
Recursive(Parser) - Constructor for class Recursive
 
recursive() - Method in class Recursive
check that parser does not have unlimited recursion.
reduce(int) - Method in class Observe.Adapter
called when a rule is completed: does nothing.
reduce(int) - Method in interface Observe.Observer
called when a rule is completed.
rem(int, List) - Method in class Gl.Tree
factory method.
rem(int, List) - Method in class Tree
factory method.
remove(int) - Method in class Gl.Tree.Add
 
remove(int) - Method in class Gl.Tree.AndIf
 
remove(int) - Method in class Gl.Tree.Assign
 
remove(int) - Method in class Gl.Tree.Deref
 
remove(int) - Method in class Gl.Tree.Div
 
remove(int) - Method in class Gl.Tree.Eq
 
remove(int) - Method in class Gl.Tree.Ge
 
remove(int) - Method in class Gl.Tree.Gt
 
remove(int) - Method in class Gl.Tree.Guard
 
remove(int) - Method in class Gl.Tree.Le
 
remove(int) - Method in class Gl.Tree.Lit
 
remove(int) - Method in class Gl.Tree.Loop
 
remove(int) - Method in class Gl.Tree.Lt
 
remove(int) - Method in class Gl.Tree.Mul
 
remove(int) - Method in class Gl.Tree.Ne
 
remove(int) - Method in class Gl.Tree.OrIf
 
remove(int) - Method in class Gl.Tree.Print
 
remove(int) - Method in class Gl.Tree.Rem
 
remove(Object[], int) - Static method in class Gl.Tree
(inefficient) implementation of mutable lists.
remove(int) - Method in class Gl.Tree.Select
 
remove(int) - Method in class Gl.Tree.Stmt
 
remove(int) - Method in class Gl.Tree.Sub
 
remove(int) - Method in class Gl.Tree.Var
 
remove(int) - Method in class Gl.Tree.With
 
repeat(int, int, int, Parser.Node...) - Method in class ParserFactory
factory method.
repeat(Parser.Node) - Method in interface RfcBuilder.Repeator
 
Result - Class in mops
result of using parse parse on Input.
Result(Object, Input) - Constructor for class Result
succeed.
Result(Input, String) - Constructor for class Result
fail.
RfcBuilder - Class in oops3
builder for recognizer built from Boot and rfc.rfc.
RfcBuilder() - Constructor for class RfcBuilder
 
RfcBuilder.Repeator - Interface in oops3
closure to generate Repeat.
rule - Variable in class Parser.Nonterminal
references Parser.rules.
rule(int, String, Parser.Type, Parser.Node) - Method in class ParserFactory
factory method: maintains ParserFactory.nonterminals, ParserFactory.rules, and Parser.start.
rule(int, List) - Method in class RfcBuilder
rule: type?
RULE - Variable in class yyLex
 
rules(PrintWriter) - Method in class MopsGen
output parser functions for rules.
rules - Variable in class Parser
one Rule per Nonterminal name in order of definition.
rules - Variable in class ParserFactory
mutable version of Parser.rules.

S

scanner - package scanner
An implementation of scanners which only requires Perl-like regular expressions.
scanner(PrintWriter) - Method in class MopsGen
output scanner based on regular expressions.
scanner - Variable in class Recognize
scanner for this run of recognize.
Scanner - Interface in oops3
what a scanner must do.
Scanner - Class in scanner
scanner, based on regular expressions.
Scanner(String[], String[], String[]) - Constructor for class Scanner
construct the scanning engine.
Scanner.Lookup - Interface in oops3
what the Parser does for a scanner.
Scanners - Class in mops
demonstrate scanners, i.e., ParserFactory.
Scanners() - Constructor for class Scanners
 
Scheme - Class in lambda
Scheme-style lambda calculus.
Scheme() - Constructor for class Scheme
 
Scheme.yyLex - Class in lambda
 
Scheme.yyLex(Reader) - Constructor for class Scheme.yyLex
 
Scheme.yyLex(InputStream) - Constructor for class Scheme.yyLex
 
Scheme.yyLex() - Constructor for class Scheme.yyLex
 
Scope - Interface in mops
used as argument to andThen to produce the second parser and bind a value into its scope.
select(int, List) - Method in class Gl.Tree
factory method.
select(int, List) - Method in class Tree
factory method.
sequence(int, Parser.Node...) - Method in class ParserFactory
factory method.
sequence(int, List) - Method in class RfcBuilder
sequence: term+;
set(Object) - Method in class Env.DenotedValue
change current value.
set(int, Object) - Method in class Gl.Tree.Add
 
set(int, Object) - Method in class Gl.Tree.AndIf
 
set(int, Object) - Method in class Gl.Tree.Assign
 
set(int, Object) - Method in class Gl.Tree.Deref
 
set(int, Object) - Method in class Gl.Tree.Div
 
set(int, Object) - Method in class Gl.Tree.Eq
 
set(int, Object) - Method in class Gl.Tree.Ge
 
set(int, Object) - Method in class Gl.Tree.Gt
 
set(int, Object) - Method in class Gl.Tree.Guard
 
set(int, Object) - Method in class Gl.Tree.Le
 
set(int, Object) - Method in class Gl.Tree.Lit
 
set(int, Object) - Method in class Gl.Tree.Loop
 
set(int, Object) - Method in class Gl.Tree.Lt
 
set(int, Object) - Method in class Gl.Tree.Mul
 
set(int, Object) - Method in class Gl.Tree.Ne
 
set(int, Object) - Method in class Gl.Tree.OrIf
 
set(int, Object) - Method in class Gl.Tree.Print
 
set(int, Object) - Method in class Gl.Tree.Rem
 
set(int, Object) - Method in class Gl.Tree.Select
 
set(int, Object) - Method in class Gl.Tree.Stmt
 
set(int, Object) - Method in class Gl.Tree.Sub
 
set(int, Object) - Method in class Gl.Tree.Var
 
set(int, Object) - Method in class Gl.Tree.With
 
setExpr(Tree.Expression) - Method in class Tree.Function
must be used once only to complete construction.
setLookup(Scanner.Lookup) - Method in class Gl.yyLex
 
setLookup(Scanner.Lookup) - Method in class Lambda.yyLex
 
setLookup(Scanner.Lookup) - Method in class Scheme.yyLex
 
setLookup(Scanner.Lookup) - Method in interface Scanner
where to look up symbol values.
setLookup(Scanner.Lookup) - Method in class yyLex
 
sets(Parser.Node) - Method in class Dump
interpret lookahead and/or follow sets if requested.
setTrace(PrintWriter) - Method in class ParserFactory
set or clear trace stream.
shallow - Variable in class Lookahead
true if shallow pass: pursue a sequence only as far as necessary.
shift(int, Parser.Literal) - Method in class Observe.Adapter
called when a Parser.Literal is accepted: does nothing.
shift(int, Parser.Token) - Method in class Observe.Adapter
called when a Parser.Token is accepted: does nothing.
shift(int, Observe.Observer) - Method in class Observe.Adapter
called when a Parser.Nonterminal is accepted: does nothing.
shift(int, Parser.Literal) - Method in interface Observe.Observer
called when a Parser.Literal is accepted.
shift(int, Parser.Token) - Method in interface Observe.Observer
called when a Parser.Token is accepted.
shift(int, Observe.Observer) - Method in interface Observe.Observer
called when a Parser.Nonterminal is accepted.
showClass(Parser.Group) - Method in class Dump
common code: show indented class name.
showClass(Parser.Repeat) - Method in class Dump
show indented class name and range, delegate to common code.
size() - Method in class Gl.Tree.Add
 
size() - Method in class Gl.Tree.AndIf
 
size() - Method in class Gl.Tree.Assign
 
size() - Method in class Gl.Tree.Deref
 
size() - Method in class Gl.Tree.Div
 
size() - Method in class Gl.Tree.Eq
 
size() - Method in class Gl.Tree.Ge
 
size() - Method in class Gl.Tree.Gt
 
size() - Method in class Gl.Tree.Guard
 
size() - Method in class Gl.Tree.Le
 
size() - Method in class Gl.Tree.Lit
 
size() - Method in class Gl.Tree.Loop
 
size() - Method in class Gl.Tree.Lt
 
size() - Method in class Gl.Tree.Mul
 
size() - Method in class Gl.Tree.Ne
 
size() - Method in class Gl.Tree.OrIf
 
size() - Method in class Gl.Tree.Print
 
size() - Method in class Gl.Tree.Rem
 
size() - Method in class Gl.Tree.Select
 
size() - Method in class Gl.Tree.Stmt
 
size() - Method in class Gl.Tree.Sub
 
size() - Method in class Gl.Tree.Var
 
size() - Method in class Gl.Tree.With
 
size() - Method in class Parser.Group
 
size() - Method in class Parser.Node
needs to be overridden when there are descendants.
size() - Method in class Parser.Rule
 
skip - Static variable in interface Arithmetic
 
skip - Static variable in interface Language
 
some() - Method in class Parser
create a parser which will apply the receiver at least once and return all results as an ArrayList.
some(int, Parser.Node...) - Method in class ParserFactory
convenience method: repeat at least once.
some(int, List) - Method in class RfcBuilder
some: '+' list?
someItems(int, List) - Method in class EbnfBuilder
someItems: '{' alt '}';
start - Variable in class Parser
index of start symbol in Parser.rules.
step - Variable in class Tree
if true, show each reduction step.
stmt(int, List) - Method in class Gl.Tree
factory method: pass single descendant through.
Stream - Class in scanner
Input provider, allows access to a stream using mutable Inputs.
Stream(BufferedReader) - Constructor for class Stream
create from a BufferedReader.
Stream.InputImpl - Class in scanner
wrap an immutable current character offset.
Stream.InputImpl(int, int) - Constructor for class Stream.InputImpl
see Stream.newInput(java.io.BufferedReader) and advance(int).
sub(int, List) - Method in class Gl.Tree
factory method.
sub(int, List) - Method in class Tree
factory method.
substitute(Tree.Variable, Tree.Expression) - Method in class Tree.Expression
substitutes all occurrences of var in this expression by arg.
substitute(Tree.Variable, Tree.Expression) - Method in class Tree.Function
delegates to function body.
substitute(Tree.Variable, Tree.Expression) - Method in class Tree.Invocation
delegates to the two expressions.
substitute(Tree.Variable, Tree.Expression) - Method in class Tree.Variable
returns arg.alpha() if it is this var.
succeed(Object) - Static method in class Parser
create a parser which succeeds and returns a value.
suffix(Parser.Repeat) - Method in class Grammar
show range string.
sum - Static variable in class Eval
 
sum - Static variable in class Tree
 
symbol - Static variable in class MopsParser
 
symbol - Variable in class Parser.Literal
the numerical encoding.
symbol - Variable in class Parser.Pattern
the numerical encoding.
Symbols - Interface in oops3
common symbol definitions.

T

templates - Static variable in class Mops
MessageFormat.format templates to generate output.
templates - Static variable in class Gen
MessageFormat.format templates to generate output.
term - Static variable in class Eval
 
term(boolean) - Static method in class MopsParser
 
term - Static variable in class Tree
 
term(int, List) - Method in class RfcBuilder
term: item ( optional | some | many )?
Test - Class in scanner
usage examples.
Test() - Constructor for class Test
 
testScanner(PrintWriter, Parser, Scanner) - Static method in class Utils
Scanner test driver, reads from scanner and prints to out.
Text(Object...) - Method in class Mops
factory method.
toChars(Object) - Static method in class Utils
return external representation of the characters of a string.
token - Variable in class Gl.yyLex
returned by Gl.yyLex.token().
token() - Method in class Gl.yyLex
 
token - Variable in class Lambda.yyLex
returned by Lambda.yyLex.token().
token() - Method in class Lambda.yyLex
 
token - Variable in class Scheme.yyLex
returned by Scheme.yyLex.token().
token() - Method in class Scheme.yyLex
 
token(int, String) - Method in class ParserFactory
factory method: searches ParserFactory.tokens.
token() - Method in interface Scanner
classifies current token.
token - Variable in class yyLex
returned by yyLex.token().
token() - Method in class yyLex
 
token - Variable in class Scanner
current token, see Scanner.token().
token() - Method in class Scanner
accessor, valid only after Scanner.advance(scanner.Input).
tokens - Variable in class ParserFactory
maps Token name to index in ParserFactory.patterns.
toString() - Method in class Gl.yyLex
position for error message.
toString() - Method in class Lambda.yyLex
position for error message.
toString() - Method in class Scheme.yyLex
position for error message.
toString() - Method in class Tree.Expression
returns string representing the expression.
toString() - Method in class Tree.Function
displays lambda var expr.
toString() - Method in class Tree.Invocation
displays (f)arg.
toString() - Method in class Tree.Variable
displays name, with unqiue id attached if lambda.id is set.
toString(StringBuilder, String) - Method in class Mops.Blank
 
toString(StringBuilder, String) - Method in class Mops.Text
 
toString(StringBuilder, String, Object) - Static method in class Node
append indented tree to result, trailing newline.
toString(StringBuilder, String) - Method in class Node
append indented tree to result, trailing newline.
toString() - Method in class Node
indented tree, no trailing newline.
toString() - Method in class Result
 
toString() - Method in class Observe.Adapter
 
toString() - Method in class Parser.Type
 
toString(String, char) - Static method in class Utils
return external representation of a string (enclosed in quotes).
toString(Parser, BitSet) - Static method in class Utils
return external representation of a Symbols, Literal, and Pattern set.
toString() - Method in class yyLex
position for error message.
toString() - Method in class Buffer.InputImpl
 
toString() - Method in class Scanner
 
trace - Variable in class ParserFactory
diagnostic output if not null.
trace(PrintWriter, Observe.Observer, String) - Method in class Observe
wrap an Observe.Observer into a Proxy for tracing.
Tree - Class in gl
tree factory to evaluate a Guarded Language program.
Tree() - Constructor for class Tree
 
tree - Variable in class Build
factory.
Tree - Class in lambda
Lambda calculus tree nodes and evaluation.
Tree() - Constructor for class Tree
 
Tree - Class in mops
 
Tree() - Constructor for class Tree
 
Tree.Add - Class in gl
tree node class.
Tree.Add(int, List) - Constructor for class Tree.Add
 
Tree.Add - Class in mops
 
Tree.Add(Object...) - Constructor for class Tree.Add
 
Tree.AndIf - Class in gl
tree node class.
Tree.AndIf(int, List) - Constructor for class Tree.AndIf
 
Tree.Assign - Class in gl
tree node class.
Tree.Assign(int, List) - Constructor for class Tree.Assign
 
Tree.Deref - Class in gl
tree node class.
Tree.Deref(int, List) - Constructor for class Tree.Deref
 
Tree.Div - Class in gl
tree node class.
Tree.Div(int, List) - Constructor for class Tree.Div
 
Tree.Div - Class in mops
 
Tree.Div(Object...) - Constructor for class Tree.Div
 
Tree.Eq - Class in gl
tree node class.
Tree.Eq(int, List) - Constructor for class Tree.Eq
 
Tree.Expression - Class in lambda
base class for lambda expressions.
Tree.Expression() - Constructor for class Tree.Expression
 
Tree.Function - Class in lambda
models a function: 'lambda' 'Id' expr.
Tree.Function(String) - Constructor for class Tree.Function
constructs function with new variable and no expression (yet).
Tree.Function(Tree.Variable) - Constructor for class Tree.Function
constructs function with cloned variable and no expression (yet).
Tree.Function(Tree.Variable, Tree.Expression) - Constructor for class Tree.Function
constructs function.
Tree.Ge - Class in gl
tree node class.
Tree.Ge(int, List) - Constructor for class Tree.Ge
 
Tree.Gt - Class in gl
tree node class.
Tree.Gt(int, List) - Constructor for class Tree.Gt
 
Tree.Interpreter - Interface in gl
what an interpreter branch node can do.
Tree.Invocation - Class in lambda
models a function call: '(' expr ')' expr.
Tree.Invocation(Tree.Expression, Tree.Expression) - Constructor for class Tree.Invocation
constructs function call.
Tree.Le - Class in gl
tree node class.
Tree.Le(int, List) - Constructor for class Tree.Le
 
Tree.Leaf - Class in mops
 
Tree.Leaf(Object...) - Constructor for class Tree.Leaf
 
Tree.Lit - Class in gl
tree node class.
Tree.Lit(int, List) - Constructor for class Tree.Lit
 
Tree.Loop - Class in gl
tree node class.
Tree.Loop(int, List) - Constructor for class Tree.Loop
 
Tree.Lt - Class in gl
tree node class.
Tree.Lt(int, List) - Constructor for class Tree.Lt
 
Tree.Mul - Class in gl
tree node class.
Tree.Mul(int, List) - Constructor for class Tree.Mul
 
Tree.Mul - Class in mops
 
Tree.Mul(Object...) - Constructor for class Tree.Mul
 
Tree.Ne - Class in gl
tree node class.
Tree.Ne(int, List) - Constructor for class Tree.Ne
 
Tree.OrIf - Class in gl
tree node class.
Tree.OrIf(int, List) - Constructor for class Tree.OrIf
 
Tree.Print - Class in gl
tree node class.
Tree.Print(int, List) - Constructor for class Tree.Print
 
Tree.Rem - Class in gl
tree node class.
Tree.Rem(int, List) - Constructor for class Tree.Rem
 
Tree.Select - Class in gl
tree node class.
Tree.Select(int, List) - Constructor for class Tree.Select
 
Tree.Sub - Class in gl
tree node class.
Tree.Sub(int, List) - Constructor for class Tree.Sub
 
Tree.Sub - Class in mops
 
Tree.Sub(Object...) - Constructor for class Tree.Sub
 
Tree.Variable - Class in lambda
models a variable: 'Id'.
Tree.Variable(String, Tree.Function) - Constructor for class Tree.Variable
 
Tree.Variable(Tree.Variable, Tree.Function) - Constructor for class Tree.Variable
copy constructor.
Tree.With - Class in gl
tree node class.
Tree.With(int, List) - Constructor for class Tree.With
 
Trees(Object...) - Method in class Mops
factory method.
trees - Static variable in class MopsParser
 
type - Variable in class Parser.Binding
type.
type(String, boolean, String...) - Method in class ParserFactory
factory method.
type(int, List) - Method in class RfcBuilder
type: '<' ( Id ( ':' Id +/ ',' )?

U

unique - Variable in class Tree
id option: unique number for variables
unpackFromString(int, int, String) - Method in class Gl.yyLex
 
unpackFromString(int, int, String) - Method in class Lambda.yyLex
 
unpackFromString(int, int, String) - Method in class Scheme.yyLex
 
unpackFromString(int, int, String) - Method in class yyLex
 
Utils - Class in oops3
useful functions.
Utils() - Constructor for class Utils
 

V

value - Variable in class Env.DenotedValue
 
value(String) - Method in class Env
search this and recursively Env.prev.
value - Variable in class Gl.yyLex
returned by Gl.yyLex.value().
value() - Method in class Gl.yyLex
 
value - Variable in class Lambda.yyLex
returned by Lambda.yyLex.value().
value() - Method in class Lambda.yyLex
 
value - Variable in class Scheme.yyLex
returned by Scheme.yyLex.value().
value() - Method in class Scheme.yyLex
 
value - Variable in class Result
 
value - Variable in class Parser.Binding
value, might be set later.
value - Variable in class Parser.Literal
the literal value, internalized.
value() - Method in interface Scanner
associated with current token.
value - Variable in class yyLex
returned by yyLex.value().
value() - Method in class yyLex
 
value - Variable in class Scanner
value associated with current token, see Scanner.value().
value() - Method in class Scanner
accessor, valid only after Scanner.advance(scanner.Input).
var(int, List) - Method in class Gl.Tree
factory method.
var - Variable in class Tree.Function
 
variable(int, List) - Method in class Build
variable: Id;
Variable(String, Tree.Function) - Method in class Tree
factory method.
Variable(Tree.Variable, Tree.Function) - Method in class Tree
factory method: copy constructor.
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Add
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.AndIf
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Assign
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Deref
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Div
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Eq
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Ge
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Gt
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Guard
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Le
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Lit
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Loop
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Lt
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Mul
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Ne
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.OrIf
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Print
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Rem
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Select
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Stmt
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Sub
 
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.Var
 
visit(Gl.Tree.Visitor) - Method in interface Gl.Tree.Visit
receive a visitor.
visit(Gl.Tree.Select) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Loop) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Print) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.With) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Stmt) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Guard) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Var) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.OrIf) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.AndIf) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Eq) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Ne) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Lt) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Le) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Gt) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Ge) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Add) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Sub) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Mul) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Div) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Rem) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Lit) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Deref) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Assign) - Method in interface Gl.Tree.Visitor
 
visit(Gl.Tree.Visit) - Method in interface Gl.Tree.Visitor
hook for unknown classes.
visit(Gl.Tree.Visitor) - Method in class Gl.Tree.With
 
visit(Gl.Tree.Select) - Method in class Visitor
 
visit(Gl.Tree.Loop) - Method in class Visitor
 
visit(Gl.Tree.Print) - Method in class Visitor
 
visit(Gl.Tree.With) - Method in class Visitor
 
visit(Gl.Tree.Stmt) - Method in class Visitor
 
visit(Gl.Tree.Guard) - Method in class Visitor
 
visit(Gl.Tree.Var) - Method in class Visitor
 
visit(Gl.Tree.OrIf) - Method in class Visitor
 
visit(Gl.Tree.AndIf) - Method in class Visitor
 
visit(Gl.Tree.Eq) - Method in class Visitor
 
visit(Gl.Tree.Ne) - Method in class Visitor
 
visit(Gl.Tree.Lt) - Method in class Visitor
 
visit(Gl.Tree.Le) - Method in class Visitor
 
visit(Gl.Tree.Gt) - Method in class Visitor
 
visit(Gl.Tree.Ge) - Method in class Visitor
 
visit(Gl.Tree.Add) - Method in class Visitor
 
visit(Gl.Tree.Sub) - Method in class Visitor
 
visit(Gl.Tree.Mul) - Method in class Visitor
 
visit(Gl.Tree.Div) - Method in class Visitor
 
visit(Gl.Tree.Rem) - Method in class Visitor
 
visit(Gl.Tree.Lit) - Method in class Visitor
 
visit(Gl.Tree.Deref) - Method in class Visitor
 
visit(Gl.Tree.Assign) - Method in class Visitor
 
visit(Gl.Tree.Visit) - Method in class Visitor
 
visit(Parser.Rule) - Method in class Build
override processing of a Rule: push Build.current, visit right hand side, pop Build.current; silently filter by invoking Build.builder.
visit(Parser.Nonterminal) - Method in class Build
override processing of a Nonterminal: visit rule; if result is ArrayList flatten, else add result to Build.current.
visit(Parser.Token) - Method in class Build
override processing of a Token: add value to Build.current, then delegate to base class.
visit(Parser.Permute) - Method in class Build
override processing of a Permute: collect each alternative separately, add the collections, flattened, in order of definition.
visit(Parser.PermutedList) - Method in class Build
override processing of a PermutedList.
visit(Parser.Literal) - Method in class Dump
show indented symbol and value.
visit(Parser.Pattern) - Method in class Dump
show indented symbol, type if any, name, and value.
visit(Parser.Token) - Method in class Dump
delegate to pattern.
visit(Parser.Rule) - Method in class Dump
show type, name and indented tree.
visit(Parser.Nonterminal) - Method in class Dump
show indented type if any, name.
visit(Parser.Group) - Method in class Dump
common code: show further indented dependents.
visit(Parser.Sequence) - Method in class Dump
delegate to common code.
visit(Parser.Repeat) - Method in class Dump
delegate to common code.
visit(Parser.Delimit) - Method in class Dump
show class name, further indented delimiter, and indented dependents.
visit(Parser.Xor) - Method in class Dump
delegate to common code.
visit(Parser.PermutedList) - Method in class Dump
show class name, further indented delimiter, and indented dependents.
visit(Parser.Rule) - Method in class Follow
add to and and ask rhs.
visit(Parser.Nonterminal) - Method in class Follow
add to rule; mark if increased.
visit(Parser.Terminal) - Method in class Follow
nothing to do.
visit(Parser.Sequence) - Method in class Follow
propagate from back to front.
visit(Parser.Xor) - Method in class Follow
send follow to each alternative.
visit(Parser.Repeat) - Method in class Follow
propagate follow (plus lookahead if max > 1) in body.
visit(Parser.Delimit) - Method in class Follow
compute follow sets and propagate.
visit(Parser.Permute) - Method in class Follow
send follow plus other lookaheads minus noInput to each alternative.
visit(Parser.PermutedList) - Method in class Follow
send follow plus lookahead of delimiter to each alternative.
visit(Parser.Pattern) - Method in class Grammar
( '<' Id '>' )?
visit(Parser.Rule) - Method in class Grammar
( '<' Id '>' '?'?
visit(Parser.Literal) - Method in class Grammar
show value.
visit(Parser.Token) - Method in class Grammar
show name.
visit(Parser.Nonterminal) - Method in class Grammar
show name.
visit(Parser.Group) - Method in class Grammar
'(' node+ ')'
visit(Parser.Repeat) - Method in class Grammar
'(' node+ ')' suffix
visit(Parser.Delimit) - Method in class Grammar
body suffix delim
visit(Parser.Xor) - Method in class Grammar
'(' xor ')'
visit(Parser.And) - Method in class Grammar
'{' xor '}'
visit(Parser.Or) - Method in class Grammar
'[' xor ']'
visit(Parser.AndList) - Method in class Grammar
'{' xor '}' delim
visit(Parser.OrList) - Method in class Grammar
'[' xor ']' delim
visit(Parser.Rule) - Method in class LL1
check and traverse rhs.
visit(Parser.Terminal) - Method in class LL1
nothing to do.
visit(Parser.Nonterminal) - Method in class LL1
nothing to do.
visit(Parser.Group) - Method in class LL1
common code: visit descendants.
visit(Parser.Sequence) - Method in class LL1
check node, traverse descendants.
visit(Parser.Repeat) - Method in class LL1
check node unconditionally, traverse decendants.
visit(Parser.Delimit) - Method in class LL1
check if loop end is detected, traverse body and delimiter.
visit(Parser.Xor) - Method in class LL1
check node, traverse descendants.
visit(Parser.Permute) - Method in class LL1
check node unconditionally, traverse descendants.
visit(Parser.PermutedList) - Method in class LL1
check node with the delimiter, traverse descendants.
visit(Parser.Terminal) - Method in class Lookahead
nothing to do, lookahead singleton set by ParserFactory.
visit(Parser.Rule) - Method in class Lookahead
traverse body if lookahead is not yet set or if deep pass.
visit(Parser.Nonterminal) - Method in class Lookahead
traverse rule unless shallow and left recursion or deep and not yet marked.
visit(Parser.Group) - Method in class Lookahead
common code to deal with Sequence.
visit(Parser.Repeat) - Method in class Lookahead
add noInput if min is zero.
visit(Parser.Delimit) - Method in class Lookahead
add delimiter if noInput in body or visit on deep pass.
visit(Parser.Xor) - Method in class Lookahead
 
visit(Parser.Permute) - Method in class Lookahead
error if noInput is allowed.
visit(Parser.PermutedList) - Method in class Lookahead
error if any noInput is allowed.
visit(Parser.Rule) - Method in class MopsGen
generate function header and collection code.
visit(Parser.Token) - Method in class MopsGen
generate pattern name.
visit(Parser.Literal) - Method in class MopsGen
generate literal function call.
visit(Parser.Nonterminal) - Method in class MopsGen
generate nonterminal function call.
visit(Parser.Xor) - Method in class MopsGen
combine using Parser.orElse(mops.Parser).
visit(Parser.Group) - Method in class MopsGen
combine using Parser.andThen(mops.Scope) if more then one.
visit(Parser.Repeat) - Method in class MopsGen
call combinator and delegate to common code.
visit(Parser.Delimit) - Method in class MopsGen
 
visit(Parser.PermutedList) - Method in class MopsGen
 
visit(Parser.Rule) - Method in class Observe
override processing of a Rule: save Observe.observer, replace it by result of init, visit right hand side, send reduce, restore Observe.observer, send shift.
visit(Parser.Token) - Method in class Observe
override processing of a Token: send shift, then delegate to base class.
visit(Parser.Literal) - Method in class Observe
override processing of a Literal: send shift, then delegate to base class.
visit(Visitor) - Method in class Parser.And
 
visit(Visitor) - Method in class Parser.AndList
 
visit(Visitor) - Method in class Parser.Delimit
 
visit(Visitor) - Method in class Parser.Literal
 
visit(Visitor) - Method in class Parser.Node
implements divide and conquer for Visitor.
visit(Visitor) - Method in class Parser.Nonterminal
 
visit(Visitor) - Method in class Parser.Or
 
visit(Visitor) - Method in class Parser.OrList
 
visit(Visitor) - Method in class Parser.Pattern
 
visit(Visitor) - Method in class Parser.Repeat
 
visit(Visitor) - Method in class Parser.Rule
 
visit(Visitor) - Method in class Parser.Sequence
 
visit(Visitor) - Method in class Parser.Terminal
 
visit(Visitor) - Method in class Parser.Token
 
visit(Visitor) - Method in class Parser.Xor
 
visit(Parser.Rule) - Method in class Recognize
process Rule: visit right hand side.
visit(Parser.Nonterminal) - Method in class Recognize
process Nonterminal: visit rule.
visit(Parser.Terminal) - Method in class Recognize
process Literal or Token: advance scanner.
visit(Parser.Group) - Method in class Recognize
common processing for Group: for each element: visit if lookahead matches, else if lookahead accepts noInput delegate to Recognize.noInput(), else issue an error; advance scanner until lookahead matches, visit.
visit(Parser.Repeat) - Method in class Recognize
process Repeat: (greedy algorithm) iterate body as a Group until maximum is reached, or minimum is reached and lookahead does not match.
visit(Parser.Delimit) - Method in class Recognize
process Delimit: (greedy algorithm) essentially like Repeat with visits to the delimiter interspersed; complicated by the fact that either body or delimiter (but not both) can accept noInput.
visit(Parser.Xor) - Method in class Recognize
process Xor: exactly one alternative must match.
visit(Parser.Permute) - Method in class Recognize
process Permute: (greedy algorithm) copies ranges from directly nested Repeat (but not Delimit), continues to check lookaheads and visit appropriate alternatives until for Or one or for And all ranges and alternatives have been found.
visit(Parser.PermutedList) - Method in class Recognize
process PermutedList: (greedy algorithm) essentially like Permute with visits to the delimiter interspersed.
visit(Parser.Rule) - Method in class Recursive
loops if rhs needs input and loops.
visit(Parser.Nonterminal) - Method in class Recursive
loops if rule is marked or loops.
visit(Parser.Terminal) - Method in class Recursive
does not loop.
visit(Parser.Group) - Method in class Recursive
common code: loops if any element needs input and loops.
visit(Parser.Xor) - Method in class Recursive
loops if all alternatives loop.
visit(Parser.Permute) - Method in class Recursive
loop if any alternative loops.
visit(Parser.PermutedList) - Method in class Recursive
loop if delimiter or any alternative loops.
visit(Parser.Repeat) - Method in class Recursive
ok if noInput, otherwise check body.
visit(Parser.Delimit) - Method in class Recursive
check delimiter and treat like Repeat.
visit(Parser.Node) - Method in class Visitor
visit base class of parse trees.
visit(Parser.Pattern) - Method in class Visitor
delegates to visit(Node).
visit(Parser.Rule) - Method in class Visitor
delegates to visit(Node).
visit(Parser.Group) - Method in class Visitor
delegates to visit(Node).
visit(Parser.Repeat) - Method in class Visitor
delegates to visit(Group).
visit(Parser.Delimit) - Method in class Visitor
delegates to visit(Repeat).
visit(Parser.Sequence) - Method in class Visitor
delegates to visit(Group).
visit(Parser.Xor) - Method in class Visitor
delegates to visit(Group).
visit(Parser.Permute) - Method in class Visitor
delegates to visit(Xor).
visit(Parser.And) - Method in class Visitor
delegates to visit(Permute).
visit(Parser.Or) - Method in class Visitor
delegates to visit(Permute).
visit(Parser.PermutedList) - Method in class Visitor
delegates to visit(Permute).
visit(Parser.AndList) - Method in class Visitor
delegates to visit(PermutedList).
visit(Parser.OrList) - Method in class Visitor
delegates to visit(PermutedList).
visit(Parser.Nonterminal) - Method in class Visitor
delegates to visit(Node).
visit(Parser.Terminal) - Method in class Visitor
delegates to visit(Node).
visit(Parser.Literal) - Method in class Visitor
delegates to visit(Terminal).
visit(Parser.Token) - Method in class Visitor
delegates to visit(Terminal).
Visitor - Class in gl
visitor to evaluate a Guarded Language program.
Visitor() - Constructor for class Visitor
 
Visitor - Class in oops3
infrastructure for the visitor pattern.
Visitor() - Constructor for class Visitor
 

W

warning(String) - Method in class Utils
writes warning message.
warning(Parser.Node, String) - Method in class Utils
writes warning message with (nonzero) position from node.
with(int, List) - Method in class Gl.Tree
factory method.
with(int, List) - Method in class Tree
factory method.
word - Static variable in class MopsParser
 

X

XbnfBuilder - Class in oops3
builder for recognizer built from xbnf.rfc and xbnf.xbnf.
XbnfBuilder() - Constructor for class XbnfBuilder
 
xor(int, List) - Method in class EbnfBuilder
xor: sequence +/ '|';
xor: sequence [{ '|' sequence }];

Overridden because many will return null if nothing is found.
xor(Parser.Xor) - Method in class Grammar
node / '|'
xor(Parser.Xor) - Method in class Lookahead
common code: visit all alternatives; first access: combine, error if not disjoint.
xor(int, Parser.Node...) - Method in class ParserFactory
factory method.
xor(int, List) - Method in class RfcBuilder
xor: sequence +/ '|';
xors(int, List) - Method in class XbnfBuilder
xors: xor+;

Y

yy_acpt - Variable in class Gl.yyLex
 
yy_acpt - Variable in class Lambda.yyLex
 
yy_acpt - Variable in class Scheme.yyLex
 
yy_acpt - Variable in class yyLex
 
yy_advance() - Method in class Gl.yyLex
 
yy_advance() - Method in class Lambda.yyLex
 
yy_advance() - Method in class Scheme.yyLex
 
yy_advance() - Method in class yyLex
 
yy_at_bol - Variable in class Gl.yyLex
 
yy_at_bol - Variable in class Lambda.yyLex
 
yy_at_bol - Variable in class Scheme.yyLex
 
yy_at_bol - Variable in class yyLex
 
YY_BOL - Variable in class Gl.yyLex
 
YY_BOL - Variable in class Lambda.yyLex
 
YY_BOL - Variable in class Scheme.yyLex
 
YY_BOL - Variable in class yyLex
 
yy_buffer - Variable in class Gl.yyLex
 
yy_buffer - Variable in class Lambda.yyLex
 
yy_buffer - Variable in class Scheme.yyLex
 
yy_buffer - Variable in class yyLex
 
yy_buffer_end - Variable in class Gl.yyLex
 
yy_buffer_end - Variable in class Lambda.yyLex
 
yy_buffer_end - Variable in class Scheme.yyLex
 
yy_buffer_end - Variable in class yyLex
 
yy_buffer_index - Variable in class Gl.yyLex
 
yy_buffer_index - Variable in class Lambda.yyLex
 
yy_buffer_index - Variable in class Scheme.yyLex
 
yy_buffer_index - Variable in class yyLex
 
yy_buffer_read - Variable in class Gl.yyLex
 
yy_buffer_read - Variable in class Lambda.yyLex
 
yy_buffer_read - Variable in class Scheme.yyLex
 
yy_buffer_read - Variable in class yyLex
 
YY_BUFFER_SIZE - Variable in class Gl.yyLex
 
YY_BUFFER_SIZE - Variable in class Lambda.yyLex
 
YY_BUFFER_SIZE - Variable in class Scheme.yyLex
 
YY_BUFFER_SIZE - Variable in class yyLex
 
yy_buffer_start - Variable in class Gl.yyLex
 
yy_buffer_start - Variable in class Lambda.yyLex
 
yy_buffer_start - Variable in class Scheme.yyLex
 
yy_buffer_start - Variable in class yyLex
 
yy_cmap - Variable in class Gl.yyLex
 
yy_cmap - Variable in class Lambda.yyLex
 
yy_cmap - Variable in class Scheme.yyLex
 
yy_cmap - Variable in class yyLex
 
yy_double(char[]) - Method in class Gl.yyLex
 
yy_double(char[]) - Method in class Lambda.yyLex
 
yy_double(char[]) - Method in class Scheme.yyLex
 
yy_double(char[]) - Method in class yyLex
 
YY_E_INTERNAL - Variable in class Gl.yyLex
 
YY_E_INTERNAL - Variable in class Lambda.yyLex
 
YY_E_INTERNAL - Variable in class Scheme.yyLex
 
YY_E_INTERNAL - Variable in class yyLex
 
YY_E_MATCH - Variable in class Gl.yyLex
 
YY_E_MATCH - Variable in class Lambda.yyLex
 
YY_E_MATCH - Variable in class Scheme.yyLex
 
YY_E_MATCH - Variable in class yyLex
 
YY_END - Variable in class Gl.yyLex
 
YY_END - Variable in class Lambda.yyLex
 
YY_END - Variable in class Scheme.yyLex
 
YY_END - Variable in class yyLex
 
YY_EOF - Variable in class Gl.yyLex
 
YY_EOF - Variable in class Lambda.yyLex
 
YY_EOF - Variable in class Scheme.yyLex
 
YY_EOF - Variable in class yyLex
 
yy_eof_done - Variable in class Gl.yyLex
 
yy_eof_done - Variable in class Lambda.yyLex
 
yy_eof_done - Variable in class Scheme.yyLex
 
yy_eof_done - Variable in class yyLex
 
yy_error(int, boolean) - Method in class Gl.yyLex
 
yy_error(int, boolean) - Method in class Lambda.yyLex
 
yy_error(int, boolean) - Method in class Scheme.yyLex
 
yy_error(int, boolean) - Method in class yyLex
 
yy_error_string - Variable in class Gl.yyLex
 
yy_error_string - Variable in class Lambda.yyLex
 
yy_error_string - Variable in class Scheme.yyLex
 
yy_error_string - Variable in class yyLex
 
YY_F - Variable in class Gl.yyLex
 
YY_F - Variable in class Lambda.yyLex
 
YY_F - Variable in class Scheme.yyLex
 
YY_F - Variable in class yyLex
 
yy_last_was_cr - Variable in class Gl.yyLex
 
yy_last_was_cr - Variable in class Lambda.yyLex
 
yy_last_was_cr - Variable in class Scheme.yyLex
 
yy_last_was_cr - Variable in class yyLex
 
yy_lexical_state - Variable in class Gl.yyLex
 
yy_lexical_state - Variable in class Lambda.yyLex
 
yy_lexical_state - Variable in class Scheme.yyLex
 
yy_lexical_state - Variable in class yyLex
 
yy_mark_end() - Method in class Gl.yyLex
 
yy_mark_end() - Method in class Lambda.yyLex
 
yy_mark_end() - Method in class Scheme.yyLex
 
yy_mark_end() - Method in class yyLex
 
yy_mark_start() - Method in class Gl.yyLex
 
yy_mark_start() - Method in class Lambda.yyLex
 
yy_mark_start() - Method in class Scheme.yyLex
 
yy_mark_start() - Method in class yyLex
 
yy_move_end() - Method in class Gl.yyLex
 
yy_move_end() - Method in class Lambda.yyLex
 
yy_move_end() - Method in class Scheme.yyLex
 
yy_move_end() - Method in class yyLex
 
YY_NO_ANCHOR - Variable in class Gl.yyLex
 
YY_NO_ANCHOR - Variable in class Lambda.yyLex
 
YY_NO_ANCHOR - Variable in class Scheme.yyLex
 
YY_NO_ANCHOR - Variable in class yyLex
 
YY_NO_STATE - Variable in class Gl.yyLex
 
YY_NO_STATE - Variable in class Lambda.yyLex
 
YY_NO_STATE - Variable in class Scheme.yyLex
 
YY_NO_STATE - Variable in class yyLex
 
YY_NOT_ACCEPT - Variable in class Gl.yyLex
 
YY_NOT_ACCEPT - Variable in class Lambda.yyLex
 
YY_NOT_ACCEPT - Variable in class Scheme.yyLex
 
YY_NOT_ACCEPT - Variable in class yyLex
 
yy_nxt - Variable in class Gl.yyLex
 
yy_nxt - Variable in class Lambda.yyLex
 
yy_nxt - Variable in class Scheme.yyLex
 
yy_nxt - Variable in class yyLex
 
yy_reader - Variable in class Gl.yyLex
 
yy_reader - Variable in class Lambda.yyLex
 
yy_reader - Variable in class Scheme.yyLex
 
yy_reader - Variable in class yyLex
 
yy_rmap - Variable in class Gl.yyLex
 
yy_rmap - Variable in class Lambda.yyLex
 
yy_rmap - Variable in class Scheme.yyLex
 
yy_rmap - Variable in class yyLex
 
YY_START - Variable in class Gl.yyLex
 
YY_START - Variable in class Lambda.yyLex
 
YY_START - Variable in class Scheme.yyLex
 
YY_START - Variable in class yyLex
 
yy_state_dtrans - Variable in class Gl.yyLex
 
yy_state_dtrans - Variable in class Lambda.yyLex
 
yy_state_dtrans - Variable in class Scheme.yyLex
 
yy_state_dtrans - Variable in class yyLex
 
yy_to_mark() - Method in class Gl.yyLex
 
yy_to_mark() - Method in class Lambda.yyLex
 
yy_to_mark() - Method in class Scheme.yyLex
 
yy_to_mark() - Method in class yyLex
 
yybegin(int) - Method in class Gl.yyLex
 
yybegin(int) - Method in class Lambda.yyLex
 
yybegin(int) - Method in class Scheme.yyLex
 
yybegin(int) - Method in class yyLex
 
YYINITIAL - Variable in class Gl.yyLex
 
YYINITIAL - Variable in class Lambda.yyLex
 
YYINITIAL - Variable in class Scheme.yyLex
 
YYINITIAL - Variable in class yyLex
 
yylength() - Method in class Gl.yyLex
 
yylength() - Method in class Lambda.yyLex
 
yylength() - Method in class Scheme.yyLex
 
yylength() - Method in class yyLex
 
yyLex - Class in oops3
hand-crafted scanner for RFC-, EBNF-, and XBNF-style EBNF.
yyLex(Reader) - Constructor for class yyLex
 
yyLex(InputStream) - Constructor for class yyLex
 
yyLex() - Constructor for class yyLex
 
yyline - Variable in class Gl.yyLex
 
yyline - Variable in class Lambda.yyLex
 
yyline - Variable in class Scheme.yyLex
 
yyline - Variable in class yyLex
 
yytext() - Method in class Gl.yyLex
 
yytext() - Method in class Lambda.yyLex
 
yytext() - Method in class Scheme.yyLex
 
yytext() - Method in class yyLex
 

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

(c) 2008 Axel T. Schreiner