Bug fixes for new Netscript commands. Added total Playtime statistics. Minor UI improvements

This commit is contained in:
Daniel Xie
2017-05-15 09:15:59 -05:00
parent f32ec4f9a7
commit 3919d3e97a
11 changed files with 57 additions and 36 deletions
-3
View File
@@ -109,16 +109,13 @@ function Parser(input) {
* else: {"type": "var", "value": "foo"}
*/
function parse_if() {
console.log("Parsing if token");
checkKeywordAndSkip("if");
//Conditional
var cond = parse_expression();
console.log("cond: " + cond);
//Body
var then = parse_expression();
console.log("then: " + then);
var ret = {
type: "if",
cond: [],