diff options
author | alon@honor <none@none> | 2010-08-27 22:37:55 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-08-27 22:37:55 -0700 |
commit | 9ee8929edb51eed78a10c3e8a00922c96e7d1a20 (patch) | |
tree | ef58a778cd6fcf68a6710c6f78593eb46e75a959 /src/parser.js | |
parent | 169c8da23c84c6b0168652ac10e65d9f25909e0a (diff) |
fix bug with idents of invoke; fasta now reloops
Diffstat (limited to 'src/parser.js')
-rw-r--r-- | src/parser.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.js b/src/parser.js index 055f022f..2fccd9b4 100644 --- a/src/parser.js +++ b/src/parser.js @@ -627,8 +627,8 @@ function intertyper(data) { } item.ident = item.tokens[2].text; item.params = parseParamTokens(item.tokens[3].item[0].tokens); - item.toLabel = item.tokens[6].text; - item.unwindLabel = item.tokens[9].text; + item.toLabel = toNiceIdent(item.tokens[6].text); + item.unwindLabel = toNiceIdent(item.tokens[9].text); item.__result__ = true; return [item]; }, @@ -1113,7 +1113,7 @@ function analyzer(data) { }); // Find direct branchings labels.forEach(function(label) { -//print('zz at label: ' + label.ident + ':' + label.inLabels + ':' + label.outLabels); + if (PARSER_DEBUG) print('// find direct branchings at label: ' + label.ident + ':' + label.inLabels + ':' + label.outLabels); label.lines.forEach(function(line) { if (['branch', 'invoke'].indexOf(line.intertype) != -1) { ['label', 'labelTrue', 'labelFalse', 'toLabel', 'unwindLabel'].forEach(function(id) { |