aqua-compiler
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -194,2 +194,15 @@ "use strict"; | ||
}, | ||
itxn_begin: (node) => { | ||
this.codeEmitter.add(`itxn_begin`); | ||
this.codeEmitter.add(`int 0`); // Need to balance the stack here even though this value should never be used. | ||
}, | ||
itxn_field: (node) => { | ||
//todo: this should really remove the first argument from the code generator. | ||
this.codeEmitter.add(`itxn_field ${unquote(node.children[0].args[0])}`); | ||
this.codeEmitter.add(`int 0`); // Need to balance the stack here even though this value should never be used. | ||
}, | ||
itxn_submit: (node) => { | ||
this.codeEmitter.add(`itxn_submit`); | ||
this.codeEmitter.add(`int 0`); // Need to balance the stack here even though this value should never be used. | ||
}, | ||
}; | ||
@@ -330,2 +343,8 @@ } | ||
exports.CodeGenerator = CodeGenerator; | ||
// | ||
// Removes quotes from a string. | ||
// | ||
function unquote(input) { | ||
return input.substring(1, input.length - 1); | ||
} | ||
//# sourceMappingURL=code-generator.js.map |
{ | ||
"name": "aqua-compiler", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "An expressive high level language for the Algorand block chain that compiles to TEAL code.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
325474
4814