A B C D E G I L M N O P R S T U V

A

add(Instruction) - Method in class elan.instruction.StrictInstructionList
 
Addition - class elan.expression.Addition.
 
Addition(Expression, Expression) - Constructor for class elan.expression.Addition
 
Assignment - class elan.instruction.Assignment.
 
Assignment(Variable, Expression) - Constructor for class elan.instruction.Assignment
 
AssignmentParser - class elan.parser.AssignmentParser.
 
AssignmentParser() - Constructor for class elan.parser.AssignmentParser
 

B

BinaryExpression - class elan.expression.BinaryExpression.
 
BinaryExpression(Expression, Expression) - Constructor for class elan.expression.BinaryExpression
 

C

compareTo(Object) - Method in class elan.expression.Variable
 

D

Division - class elan.expression.Division.
 
Division(Expression, Expression) - Constructor for class elan.expression.Division
 

E

elan.expression - package elan.expression
 
elan.instruction - package elan.instruction
 
elan.parser - package elan.parser
 
ElanParser - class elan.parser.ElanParser.
Illustrates the java.io.StreamTokenizer class and how it can be used to parse tokens for a toy example programming language (elan) For this example only expressions are parsed, but lots of infrastructure is in place for parsing a more complete language
ElanParser() - Constructor for class elan.parser.ElanParser
 
equals(Object) - Method in class elan.expression.Variable
 
error(Token) - Method in class elan.parser.ElanParser
 
evaluate(Context) - Method in class elan.expression.Expression
 
evaluate(Context) - Method in class elan.expression.Variable
 
evaluate(Context) - Method in class elan.instruction.Instruction
 
evaluate(Context) - Method in class elan.instruction.Print
 
evaluate(Context) - Method in class elan.instruction.StrictInstructionList
 
evaluate(Context) - Method in class elan.instruction.Assignment
 
evaluate(Context) - Method in class elan.instruction.If
 
evaluate(Context) - Method in class elan.instruction.Repeat
 
Expression - class elan.expression.Expression.
 
Expression() - Constructor for class elan.expression.Expression
 
ExpressionParser - class elan.parser.ExpressionParser.
This is a recursive descent parser for parsing expressions using the standard grammar for expressions

G

getInstance() - Static method in class elan.expression.VariableFactory
 
getInstance() - Static method in class elan.parser.StrictInstructionListParser
 
getInstance() - Static method in class elan.parser.InstructionParser
 
getInstance() - Static method in class elan.parser.ExpressionParser
 
getNames() - Static method in class elan.parser.InstructionNames
 
getToken() - Method in class elan.parser.ElanParser
 
getVariable(IdentifierToken) - Static method in class elan.expression.VariableFactory
 

I

IdentifierParser - class elan.parser.IdentifierParser.
 
IdentifierParser() - Constructor for class elan.parser.IdentifierParser
 
If - class elan.instruction.If.
 
If(Expression, StrictInstructionList) - Constructor for class elan.instruction.If
 
Instruction - class elan.instruction.Instruction.
 
Instruction() - Constructor for class elan.instruction.Instruction
 
InstructionNames - class elan.parser.InstructionNames.
 
InstructionNames() - Constructor for class elan.parser.InstructionNames
 
InstructionParser - class elan.parser.InstructionParser.
 
iterator() - Method in class elan.instruction.StrictInstructionList
 

L

leftValue(Context) - Method in class elan.expression.BinaryExpression
 

M

main(String[]) - Static method in class elan.parser.ElanParser
 
match(Token) - Method in class elan.parser.ElanParser
try to match a token, if unsuccessful throw an exception, otherwise match succeeds, and next token is obtained and returned
Multiplication - class elan.expression.Multiplication.
 
Multiplication(Expression, Expression) - Constructor for class elan.expression.Multiplication
 
myExpression - Variable in class elan.expression.UnaryExpression
 
myExpression - Variable in class elan.instruction.Print
 
myExpression - Variable in class elan.instruction.Assignment
 
myExpression - Variable in class elan.instruction.If
 
myExpression - Variable in class elan.instruction.Repeat
 
myLeft - Variable in class elan.expression.BinaryExpression
 
myList - Variable in class elan.instruction.StrictInstructionList
 
myList - Variable in class elan.instruction.If
 
myList - Variable in class elan.instruction.Repeat
 
myName - Variable in class elan.expression.Variable
 
myRight - Variable in class elan.expression.BinaryExpression
 
myString - Variable in class elan.parser.ParseException
 
mySymbol - Variable in class elan.expression.BinaryExpression
 
myToken - Variable in class elan.parser.ElanParser
 
myTokenizer - Variable in class elan.parser.ElanParser
 
myValue - Variable in class elan.expression.Number
 
myVariable - Variable in class elan.instruction.Assignment
 

N

Negation - class elan.expression.Negation.
 
Negation(Expression) - Constructor for class elan.expression.Negation
 
nextToken() - Method in class elan.parser.ElanParser
get the next token and store it for retrieval by getToken()
Number - class elan.expression.Number.
 
Number(double) - Constructor for class elan.expression.Number
 

O

ourInstance - Static variable in class elan.parser.StrictInstructionListParser
 

P

parse(ElanParser) - Method in class elan.parser.StrictInstructionListParser
 
parse(ElanParser) - Method in class elan.parser.RepeatParser
 
parse(ElanParser) - Method in class elan.parser.PrintParser
 
parse(ElanParser) - Method in interface elan.parser.Parser
 
parse(ElanParser) - Method in class elan.parser.InstructionParser
 
parse(ElanParser) - Method in class elan.parser.AssignmentParser
 
parse(ElanParser) - Method in class elan.parser.IdentifierParser
 
parse(ElanParser) - Method in class elan.parser.ExpressionParser
 
parse(Reader) - Method in class elan.parser.ElanParser
parses an expression and prints the result of evaluating the expression.
ParseException - exception elan.parser.ParseException.
 
ParseException(String) - Constructor for class elan.parser.ParseException
 
parseExpression() - Method in class elan.parser.ExpressionParser
 
parseFactor() - Method in class elan.parser.ExpressionParser
 
Parser - interface elan.parser.Parser.
 
parseTerm() - Method in class elan.parser.ExpressionParser
 
Print - class elan.instruction.Print.
 
Print(Expression) - Constructor for class elan.instruction.Print
 
PrintParser - class elan.parser.PrintParser.
 
PrintParser() - Constructor for class elan.parser.PrintParser
 

R

Repeat - class elan.instruction.Repeat.
 
Repeat(Expression, StrictInstructionList) - Constructor for class elan.instruction.Repeat
 
RepeatParser - class elan.parser.RepeatParser.
 
RepeatParser() - Constructor for class elan.parser.RepeatParser
 
rightValue(Context) - Method in class elan.expression.BinaryExpression
 

S

skipLines() - Method in class elan.parser.ElanParser
skip EOL tokens, the next call of getToken() returns something other than EOLToken
StrictInstructionList - class elan.instruction.StrictInstructionList.
 
StrictInstructionList() - Constructor for class elan.instruction.StrictInstructionList
 
StrictInstructionListParser - class elan.parser.StrictInstructionListParser.
 
Subtraction - class elan.expression.Subtraction.
 
Subtraction(Expression, Expression) - Constructor for class elan.expression.Subtraction
 

T

toString() - Method in class elan.expression.UnaryExpression
 
toString() - Method in class elan.expression.BinaryExpression
 
toString() - Method in class elan.expression.Variable
 
toString() - Method in class elan.expression.Negation
 
toString() - Method in class elan.expression.Number
 
toString() - Method in class elan.instruction.Print
 
toString() - Method in class elan.instruction.StrictInstructionList
 
toString() - Method in class elan.instruction.Assignment
 
toString() - Method in class elan.instruction.Repeat
 
toString() - Method in class elan.parser.ParseException
 

U

UnaryExpression - class elan.expression.UnaryExpression.
 
UnaryExpression(Expression) - Constructor for class elan.expression.UnaryExpression
 

V

value(Context) - Method in class elan.expression.Expression
 
value(Context) - Method in class elan.expression.UnaryExpression
 
value(Context) - Method in class elan.expression.Multiplication
 
value(Context) - Method in class elan.expression.Variable
 
value(Context) - Method in class elan.expression.Subtraction
 
value(Context) - Method in class elan.expression.Negation
 
value(Context) - Method in class elan.expression.Number
 
value(Context) - Method in class elan.expression.Division
 
value(Context) - Method in class elan.expression.Addition
 
Variable - class elan.expression.Variable.
 
Variable(String) - Constructor for class elan.expression.Variable
 
VariableFactory - class elan.expression.VariableFactory.
 

A B C D E G I L M N O P R S T U V