As a final step before returning the finished parse tree, check if there are still multiple nodes on the stack. If so, make the inner nodes children of the top node. |
||
|---|---|---|
| .. | ||
| arithmetic | ||
| golang | ||
| javascript | ||
| json | ||
As a final step before returning the finished parse tree, check if there are still multiple nodes on the stack. If so, make the inner nodes children of the top node. |
||
|---|---|---|
| .. | ||
| arithmetic | ||
| golang | ||
| javascript | ||
| json | ||