Merge pull request #1831 from mike-lischke/issue1824

Update C++ target doc for latest API changes - fixes #1824.
This commit is contained in:
Terence Parr 2017-05-31 10:16:36 -07:00 committed by GitHub
commit c97abe5bc2
1 changed files with 3 additions and 3 deletions

View File

@ -63,9 +63,9 @@ int main(int argc, const char* argv[]) {
CommonTokenStream tokens(&lexer);
MyGrammarParser parser(&tokens);
Ref<tree::ParseTree> tree = parser.key();
Ref<TreeShapeListener> listener(new TreeShapeListener());
tree::ParseTreeWalker::DEFAULT->walk(listener, tree);
tree::ParseTree *tree = parser.key();
TreeShapeListener listener;
tree::ParseTreeWalker::DEFAULT->walk(&listener, tree);
return 0;
}