Update C++ target doc for latest API changes - fixes #1824.

This commit is contained in:
Mike Lischke 2017-04-19 14:23:44 +02:00
parent 2f248353a3
commit 1fdb7cd31d
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;
}