the the result of eval as an object and call toString\(\) on it
This commit is contained in:
@@ -112,11 +112,7 @@ public class Klang {
|
||||
System.out.println("\nEvaluating the source code:");
|
||||
EvalVisitor evalVisitor = new EvalVisitor();
|
||||
Value result = root.welcome(evalVisitor);
|
||||
if (result != null) {
|
||||
generateOutput(out, "Result was: TODO");
|
||||
} else {
|
||||
System.out.println("result was null");
|
||||
}
|
||||
generateOutput(out, "Result was: " + result.asObject().toString());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user