|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--sjm.parse.Assembler
|
+--sjm.examples.logic.ArithmeticAssembler
This assembler pops two arithmetic operands, builds an ArithmeticOperator from them, and pushes it.
| Field Summary | |
protected char |
operator
the character which represents an arithmetic operator |
| Constructor Summary | |
ArithmeticAssembler(char operator)
Constructs an assembler that will stack an ArithmeticOperator with the specified operator. |
|
| Method Summary | |
void |
workOn(Assembly a)
Pop two arithmetic operands, build an ArithmeticOperator from them, and push it. |
| Methods inherited from class sjm.parse.Assembler |
elementsAbove |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected char operator
| Constructor Detail |
public ArithmeticAssembler(char operator)
| Method Detail |
public void workOn(Assembly a)
Assembly - the assembly to work on
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||