summaryrefslogtreecommitdiffhomepage
path: root/cpp.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-14 15:24:23 +0100
committerRoland Reichwein <mail@reichwein.it>2020-03-14 15:24:23 +0100
commit15a56fcb5f29b8507298144a835a819de652e788 (patch)
tree1527d3d5996389f00f9f0afa2a4fa1122a794830 /cpp.cpp
parent6fcfe0a5cf8f53658e50e346076768eec229e695 (diff)
Prepare DFA
Diffstat (limited to 'cpp.cpp')
-rw-r--r--cpp.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/cpp.cpp b/cpp.cpp
index fc614be..714045b 100644
--- a/cpp.cpp
+++ b/cpp.cpp
@@ -186,15 +186,6 @@ std::vector<Token> CPP::tokens_from_pptokens(std::pair<index_t, std::vector<Tree
return result;
}
-// TODO: remove in favor of tokens_from_pptokens()
-void CPP::PreprocessorTokensToTokens(std::vector<Token>& tokens)
-{
- for (auto& i : tokens) {
- if (i.type == "preprocessing-op-or-punc")
- i.type = i.value;
- }
-}
-
// Phase 7.b: Grammar Analysis
std::pair<index_t, std::vector<Gram::TreeNode>> analysis(std::vector<Token>)
{