summaryrefslogtreecommitdiffhomepage
path: root/cpp.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-27 17:39:58 +0100
committerRoland Reichwein <mail@reichwein.it>2020-03-27 17:39:58 +0100
commit3057729f132d516dd9ed58c6964a495aa1c11c3d (patch)
tree7eca9a03fd08200868a5ab0c27e33170b9dc917a /cpp.cpp
parent5467147d9470ee294ddab938098c3ef172222066 (diff)
Top-down algo recognizes first C*+ program
Diffstat (limited to 'cpp.cpp')
-rw-r--r--cpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp.cpp b/cpp.cpp
index f59859d..75212a8 100644
--- a/cpp.cpp
+++ b/cpp.cpp
@@ -213,7 +213,7 @@ std::vector<Token> CPP::tokens_from_pptokens(std::vector<Token> pp_tokens)
}
// Phase 7.b: Grammar Analysis
-std::pair<index_t, std::vector<Gram::TreeNode>> CPP::analysis(std::vector<Token> tokens)
+std::vector<Gram::TreeNode> CPP::analysis(std::vector<Token> tokens)
{
auto bnf = SubBNF(CPPBNF::GetCppBNFGram(), "translation-unit");