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

A

allTests - Variable in class ExprTest
 

B

BinExpr - Class in <Unnamed>
Our internal representation of a BinExpr in the Q0 language.
BinExpr(Expr, String, Expr) - Constructor for class BinExpr
 
BinExprTest - Class in <Unnamed>
 
BinExprTest() - Constructor for class BinExprTest
 

C

ceil(double) - Static method in class UtilIan
The smallest int ≥ to x (same as Math.ceil, but returns int.)
charToString(Character) - Static method in class UtilIan
Convert a char to a String.
cond - Variable in class ParityExpr
 

D

Digits - Static variable in class UtilIan
 
DOUBLE_PATTERN - Static variable in class UtilIan
 
doubleToInt(Double) - Static method in class UtilIan
Convert a Double to an int.
doubleValue() - Method in class Num
Return the Java double this Value represents (for use by other primitives in our language.)

E

e - Variable in class ParenExpr
 
equals(Object) - Method in class BinExpr
 
equals(Object) - Method in class Num
 
equals(Object) - Method in class Pair
 
equals(Object) - Method in class ParenExpr
 
equals(Object) - Method in class ParityExpr
 
equalsApprox(double, double) - Static method in class UtilIan
Return whether two doubles are equal (approximately).
equalsApprox(double, double, double) - Static method in class UtilIan
 
equalsApproxTest() - Method in class UtilIanTest
 
equalsIgnoreWhitespace(String, String) - Static method in class UtilIan
Return whether two Strings are equal, ignoring differences in whitespace.
equalsIgnoreWhitespace(String, String, String) - Static method in class UtilIan
Return whether two Strings are equal, ignoring differences in whitespace.
equalsIgnoreWhitespaceTest() - Method in class UtilIanTest
 
equalsTest() - Method in class BinExprTest
 
equalsTest() - Method in class NumTest
 
equalsTest() - Method in class ParenExprTest
 
equalsTest() - Method in class ParityExprTest
 
eval() - Method in class BinExpr
 
eval() - Method in class Expr
Evaluate a given Expr.
eval() - Method in class ParenExpr
 
eval() - Method in class ParityExpr
 
eval() - Method in class Value
 
evenPart - Variable in class ParityExpr
 
Exp - Static variable in class UtilIan
 
Expr - Class in <Unnamed>
class Expr, our internal representation of an expression in the O0 language.
Expr() - Constructor for class Expr
 
ExprTest - Class in <Unnamed>
Test Exprs.
ExprTest() - Constructor for class ExprTest
 

F

floor(double) - Static method in class UtilIan
The largest int ≤ to x (same as Math.floor, but returns int.)

G

getFirst() - Method in class Pair
Return The first value of this pair.
getSecond() - Method in class Pair
Return The second value of this pair.

H

hashCode() - Method in class BinExpr
 
hashCode() - Method in class Expr
 
hashCode() - Method in class Num
 
hashCode() - Method in class Pair
 
hashCode() - Method in class ParenExpr
 
hashCode() - Method in class ParityExpr
 
hashCode() - Method in class Value
 
hasNextChar(Scanner, char) - Static method in class UtilIan
Is a certain character next, in a scanner's input (skipping whitespace)? This method may advance the scanner over any whitespace.
hasNextChar(Scanner) - Static method in class UtilIan
Is there a next (non-white) character to read from a scanner? Same as hasNext(); provided for completeness.
hasNextDoubleSplittingBy(Scanner, String) - Static method in class UtilIan
 
hasNextSplittingBy(Scanner, String, String) - Static method in class UtilIan
Does the scanner's next token start with a given word, optionally followed by: any of delimiterChars (and.even other chars).

I

intToDouble(Integer) - Static method in class UtilIan
Convert an Integer into to a double.

L

left - Variable in class BinExpr
 

M

mathTests() - Method in class UtilIanTest
 
max(Collection<T>) - Static method in class UtilIan
Return the maximum item in a Collection.
max(T...) - Static method in class UtilIan
A var-args version of max(Collection).
maxMinTests() - Method in class UtilIanTest
 
min(Collection<T>) - Static method in class UtilIan
Return the minimum item in a Collection.
min(T...) - Static method in class UtilIan
A var-args version of min(Collection).

N

nextChar(Scanner, char) - Static method in class UtilIan
Read the given character from a scanner's input (skipping whitespace).
nextChar(Scanner) - Static method in class UtilIan
Read the next char from a scanner's input (skipping whitespace).
nextDoubleSplittingBy(Scanner, String) - Static method in class UtilIan
 
nextMatch(Scanner, String) - Static method in class UtilIan
Return the next match (skipping initial whitespace) of a pattern.
nextMatch(Scanner, Pattern) - Static method in class UtilIan
Return the next match (skipping initial whitespace) of a pattern.
nextMatchTest() - Method in class UtilIanTest
 
nextSplittingBy(Scanner, String) - Static method in class UtilIan
Read a token, but stopping (and not consuming) if we encounter one of delimiterChars.
nextSplittingByTest() - Method in class UtilIanTest
 
Num - Class in <Unnamed>
Our internal representation of a number in the Q0 language.
Num(double) - Constructor for class Num
 
NumTest - Class in <Unnamed>
The test class NumTest.
NumTest() - Constructor for class NumTest
 

O

oddPart - Variable in class ParityExpr
 
op - Variable in class BinExpr
 

P

Pair<T,U> - Class in <Unnamed>
A class to represent two values.
Pair(T, U) - Constructor for class Pair
 
ParenExpr - Class in <Unnamed>
Our internal representation of a ParenExpr in the Q0 language.
ParenExpr(Expr) - Constructor for class ParenExpr
 
ParenExprTest - Class in <Unnamed>
 
ParenExprTest() - Constructor for class ParenExprTest
 
ParityExpr - Class in <Unnamed>
Our internal representation of a ParityExpr in the Q0 language.
ParityExpr(Expr, Expr, Expr) - Constructor for class ParityExpr
 
ParityExprTest - Class in <Unnamed>
The test class ParityExprTest.
ParityExprTest() - Constructor for class ParityExprTest
 
parse(String) - Static method in class Expr
Return (our internal representation of) the expression s.
parse(Scanner) - Static method in class Expr
Return (our internal representation of) the expression s.
PUNCTUATION - Static variable in class Expr
 

R

right - Variable in class BinExpr
 
roundTo(double, int) - Static method in class UtilIan
Round a number to a certain number of decimal places.
roundToInt(double) - Static method in class UtilIan
Round a Double to the nearest int.

S

scannerTest() - Method in class UtilIanTest
 
setUp() - Method in class ExprTest
Sets up the test fixture.
skipWhitespace(Scanner) - Static method in class UtilIan
Skip over the whitespace in a Scanner.

T

tearDown() - Method in class ExprTest
Tears down the test fixture.
testEval() - Method in class ExprTest
For every element in allTests, parse the string and eval the result, checking that we get back the second item in the pair.
testMyStuff() - Method in class ExprTest
 
testParseToString() - Method in class ExprTest
For every element in allTests, parse the string, and.even call toString on the result, checking that we get back exactly the input string (up to whitespace).
TOKEN - Static variable in class ParityExpr
 
TOLERANCE - Static variable in class ExprTest
 
toString() - Method in class BinExpr
 
toString() - Method in class Expr
Return a String representation of this Expr.
toString() - Method in class Num
 
toString() - Method in class ParenExpr
 
toString() - Method in class ParityExpr
 

U

UtilIan - Class in <Unnamed>
 
UtilIanTest - Class in <Unnamed>
The test class UtilIanTest.
UtilIanTest() - Constructor for class UtilIanTest
 

V

Value - Class in <Unnamed>
Abstract class Value - The type of all Expressions which self-evaluate: Numbers, and (later, in Q3) functions.
Value() - Constructor for class Value
 

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