Skip to content

Commit

Permalink
Missing fixes for a better parse tree output
Browse files Browse the repository at this point in the history
  • Loading branch information
mingodad committed Jul 16, 2023
1 parent eb7ff4c commit ccdca1a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions playground/lalr_playground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,7 @@ static bool parsetreeMaker( ParseTreeUserData& result, const ParseTreeUserData*
{
ParseTreeUserData& udt = result.children.emplace_back();
udt.symbol = the_node.symbol();
if(udt.symbol == start[i_node].symbol)
{
udt.children = start[i_node].children;
}
else
udt.children.push_back(std::move(start[i_node]));
udt.children.push_back(std::move(start[i_node]));
}
//printf("NON_TERMINAL: %s\n", result.symbol->identifier);
}
Expand Down

0 comments on commit ccdca1a

Please sign in to comment.