taqi/MonkeyCoder — Issue #14: Create VariableExpression
Author: taqi
Created: 2012-01-22 23:16:12+00:00
State: open

Look at the AssignmentExpression class.
As you can see , the right part is Expression.
So, to get this class works, we need to create basic expressions, that should generate code directly.
First of all - its VariableExpression.
It should generate only name of the variable. And nothing more.
steps to implement:
- Create VariableExpression class
- implement all necessary methods. Remember, that it is direct code generator.
- Your class should contain MVariable field.
- Write javaDocs
- Write Tests for it.