If statements in NetScript should work now

This commit is contained in:
Daniel Xie
2017-05-11 23:59:07 -05:00
parent 3ac33cd9e7
commit c44b514342
6 changed files with 96 additions and 39 deletions
+2
View File
@@ -114,9 +114,11 @@ function Parser(input) {
//Conditional
var cond = parse_expression();
console.log("cond: " + cond);
//Body
var then = parse_expression();
console.log("then: " + then);
var ret = {
type: "if",
cond: [],