krl-compiler
Advanced tools
Comparing version 0.12.0 to 0.13.0
{ | ||
"name": "krl-compiler", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "KRL compiler", | ||
@@ -14,3 +14,3 @@ "main": "src/index.js", | ||
"scripts": { | ||
"start": "onchange -i src/ tests.js test-files/ -- npm test -s", | ||
"start": "onchange -i src/ tests.js test-rulesets/ -- npm test -s", | ||
"lint": "eslint src/ tests.js && echo lint-ok", | ||
@@ -17,0 +17,0 @@ "test": "npm run lint -s && node tests.js" |
@@ -245,3 +245,7 @@ var _ = require("lodash"); | ||
var block = {}; | ||
//TODO "condition": COND, | ||
if(ast.condition){ | ||
block.condition = e("fn", ["ctx"], [ | ||
e("return", comp(ast.condition)) | ||
]); | ||
} | ||
//TODO "block_type": "choose", | ||
@@ -248,0 +252,0 @@ block.actions = e("arr", _.map(ast.actions, function(action){ |
19034
530
6