We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cd676e commit 154eb05Copy full SHA for 154eb05
tree.cpp
@@ -107,10 +107,10 @@ void Tree::printTree(Token* head, Token* prevToken){
107
isCall = true;
108
std::cout << "CALL";
109
while(head->getSibling() != nullptr) {
110
- head = head->getSibling();
111
if (head->getType() == "IDENTIFIER" || head->getType() == "L_PAREN" || head->getType() == "R_PAREN"){
112
std::cout << " ----> " << head->getValue();
113
}
+ head = head->getSibling();
114
115
116
} else if (head->getSibling() == nullptr && head->getChild() != nullptr && head->getValue() == ";"){
0 commit comments