creates AST from parsed tokens