Class Summary |
Addition |
|
BinaryExpression |
|
CharConsts |
|
CharToken |
A token represented by a single character, e.g., '*', ';', '[', and so on
equals compares a CharToken as equal to another CharToken encapsulating the
same character |
CharTokenFactory |
Factory for generating CharToken objects ensuring that only one of any
specific CharToken object is created (enforcing CharToken singleton-ness per
char value) |
Division |
|
ElanParser |
Illustrates the java.io.StreamTokenizer class and how it can be used to parse
tokens for a toy example programming language (elan). |
EOFToken |
This represents an end-of-file token Uses the singleton pattern since there's
no reason to have more than one such token. |
EOLToken |
This represents an end-of-line token Uses the singleton pattern since there's
no reason to have more than one such token. |
Expression |
|
ExpressionParser |
This is a recursive descent parser for parsing expressions using the standard
grammar for expressions |
GrammarElement |
|
IdentifierToken |
|
Multiplication |
|
Negation |
|
Number |
|
NumberToken |
Represents a number (using double) Using equals, a NumberToken object
compares as true only to another NumberToken object with the same value |
Subtraction |
|
UnaryExpression |
|
Variable |
|