aqua-compiler
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -247,4 +247,5 @@ "use strict"; | ||
itxn_field: (node) => { | ||
console.log(node); //fio: | ||
//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(`itxn_field ${unquote(node.functionArgs[0].value)}`); | ||
// Don't need the extra item on the stack here because we are discarding the first parameter which is on the stack. | ||
@@ -251,0 +252,0 @@ }, |
@@ -104,2 +104,3 @@ export declare enum TokenType { | ||
private skipWhitespace; | ||
private skipToNewLine; | ||
private readonly charCodeZero; | ||
@@ -106,0 +107,0 @@ private readonly charCodeNine; |
@@ -207,2 +207,7 @@ "use strict"; | ||
const ch = this.advance(); | ||
if (ch === "/" && this.peek() === "/") { | ||
// Single line comment. | ||
this.skipToNewLine(); | ||
continue; | ||
} | ||
const twoCharacterTokenLookup = TWO_CHARACTER_OPERATORS[ch]; | ||
@@ -331,2 +336,17 @@ if (twoCharacterTokenLookup !== undefined) { | ||
// | ||
// Skips to the next new line. | ||
// | ||
skipToNewLine() { | ||
while (true) { | ||
const ch = this.peek(); | ||
if (ch === "\n") { | ||
break; | ||
} | ||
if (ch === undefined) { | ||
break; | ||
} | ||
this.advance(); | ||
} | ||
} | ||
// | ||
// Returns true if the specified charater is a digit. | ||
@@ -333,0 +353,0 @@ // |
@@ -70,3 +70,3 @@ { | ||
}, | ||
"version": "0.0.24" | ||
"version": "0.0.25" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
135781
35
2332