Translations:Development/KDevelop-PG-Qt Introduction/18/en
Having the token stream available, you create your root item and call the parser on the parse method for the top-level AST item, e.g. DocumentAst* => parseDocument(&root). On success, root will contain the AST.