diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-03-14 15:24:23 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-03-14 15:24:23 +0100 |
commit | 15a56fcb5f29b8507298144a835a819de652e788 (patch) | |
tree | 1527d3d5996389f00f9f0afa2a4fa1122a794830 /cpp.cpp | |
parent | 6fcfe0a5cf8f53658e50e346076768eec229e695 (diff) |
Prepare DFA
Diffstat (limited to 'cpp.cpp')
-rw-r--r-- | cpp.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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>) { |