|
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.sling.AssignmentAssembler
Pops a function and a variable, constructs an
AssignFunctionCommand from these terms, and
pushes the command. For example, after parsing:
y = sin(x);
this assembler expects the variable y and
the function sin(x) to be on the stack, and
constructs a command from these objects.
| Constructor Summary | |
AssignmentAssembler()
|
|
| Method Summary | |
void |
workOn(Assembly a)
Pops a function and a variable, constructs an
AssignFunctionCommand from these terms, and
pushes the command. |
| 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 |
| Constructor Detail |
public AssignmentAssembler()
| Method Detail |
public void workOn(Assembly a)
AssignFunctionCommand from these terms, and
pushes the command.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 | ||||||||