Index
All Classes and Interfaces|All Packages|Constant Field Values
B
- BinOp - Class in Unnamed Package
- BinOpTest - Class in Unnamed Package
- BinOpTest() - Constructor for class BinOpTest
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.
- ConstructorTest() - Method in class PairTest
-
Default constructor for test class PairTest
D
- dbg(String, Object...) - Static method in class ExprTest
-
Just like `System.err.printf` but for debugging-output; comment out its body to disable.
- dbg(String, Object...) - Static method in class UtilIan
-
Just like `System.err.printf` but for debugging-output; comment out its body to disable.
- DOUBLE_PATTERN - Static variable in class UtilIan
- doubleToInt(Double) - Static method in class UtilIan
-
Convert a Double to an int.
E
- equals(Object) - Method in class BinOp
- equals(Object) - Method in class IfZero
- equals(Object) - Method in class Num
- equals(Object) - Method in class Pair
- equals(Object) - Method in class Paren
- 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 BinOpTest
- equalsTest() - Method in class IfZeroTest
- equalsTest() - Method in class NumTest
- equalsTest() - Method in class ParenTest
- eval() - Method in class BinOp
- eval() - Method in class Expr
-
Evaluate a given Expr.
- eval() - Method in class IfZero
- eval() - Method in class Paren
- eval() - Method in class Value
- Expr - Class in Unnamed Package
- Expr() - Constructor for class Expr
- ExprTest - Class in Unnamed Package
- 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 BinOp
- hashCode() - Method in class IfZero
- hashCode() - Method in class Num
- hashCode() - Method in class Pair
- hashCode() - Method in class Paren
- 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.
- 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.
- 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.iph other chars).
I
- IfZero - Class in Unnamed Package
-
Our internal representation of a IfZero expr in the A0 language.
- IfZeroTest - Class in Unnamed Package
-
The test class IfZeroTest.
- IfZeroTest() - Constructor for class IfZeroTest
- intToDouble(Integer) - Static method in class UtilIan
-
Convert an Integer into to a double.
L
- logPassedTest() - Method in class ExprTest
M
- main(String...) - Static method in class ExprTest
-
Manually call our test-functions (in case calling JUnit from your IDE isn't easy).
- mathTests() - Method in class UtilIanTest
- max(Collection<T>) - Static method in class UtilIan
-
Return the maximum item in a Collection[Comparable].
- 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[Comparable].
- min(T...) - Static method in class UtilIan
-
A var-args version of min(Collection).
N
- nextChar(Scanner) - Static method in class UtilIan
-
Read the next char from a scanner's input (skipping whitespace).
- nextChar(Scanner, char) - Static method in class UtilIan
-
Read the given character from a scanner's input (skipping whitespace).
- nextDoubleSplittingBy(Scanner, String) - Static method in class UtilIan
- nextDoubleSplittingByTest() - Method in class UtilIanTest
- 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 Package
-
Our internal representation of a number in the A0 language.
- NumTest - Class in Unnamed Package
-
The test class NumTest.
- NumTest() - Constructor for class NumTest
O
P
- Pair<T,
U> - Class in Unnamed Package -
A class to represent two values.
- Pair(T, U) - Constructor for class Pair
- PairTest - Class in Unnamed Package
-
The test class PairTest.
- PairTest() - Constructor for class PairTest
- Paren - Class in Unnamed Package
-
Our internal representation of a Paren in the A0 language.
- ParenTest - Class in Unnamed Package
- ParenTest() - Constructor for class ParenTest
- 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 at front of s.
- parse(Scanner, String) - Static method in class BinOp
- parse(Scanner, String) - Static method in class Expr
-
Return (our internal representation of) the expression at front of s.
- parse(Scanner, String) - Static method in class IfZero
- parse(Scanner, String) - Static method in class Num
- parse(Scanner, String) - Static method in class Paren
- PUNCTUATION - Static variable in class Expr
R
- 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 then call toString on the result, checking that we get back exactly the input string (up to whitespace).
- testTowardsAutomating() - Method in class ExprTest
- toString() - Method in class BinOp
- toString() - Method in class Expr
-
Return a String representation of this Expr.
- toString() - Method in class IfZero
- toString() - Method in class Num
- toString() - Method in class Paren
U
- UtilIan - Class in Unnamed Package
- UtilIanTest - Class in Unnamed Package
-
The test class UtilIanTest.
- UtilIanTest() - Constructor for class UtilIanTest
V
- Value - Class in Unnamed Package
-
Abstract class Value - The type of all Expressions which self-evaluate: Numbers, and (later, in R3) functions.
- Value() - Constructor for class Value
- verifyToken(String, String) - Static method in class UtilIan
-
Verify that `actualToken` equals `actualToken`; throw an InputMismatchException if not.
All Classes and Interfaces|All Packages|Constant Field Values