fixed bugs

This commit is contained in:
Valk Richard Li
2019-11-14 16:53:29 +08:00
committed by GitHub
parent ac3b5719bc
commit f0053576b3
3 changed files with 18 additions and 8 deletions
+2 -1
View File
@@ -192,6 +192,7 @@ abstract_syntax_tree balloon_parse::choose()
return new_node;
}
temp.add_child(block());
new_node.add_child(temp);
}
else// real else
{
@@ -199,9 +200,9 @@ abstract_syntax_tree balloon_parse::choose()
temp.set_line(this_token.line);
parse.push(this_token);
temp.add_child(block());
new_node.add_child(temp);
break;
}
new_node.add_child(temp);
}
else if(this_token.type==__elsif)
{