summaryrefslogtreecommitdiffhomepage
path: root/cpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp.cpp')
-rw-r--r--cpp.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp.cpp b/cpp.cpp
new file mode 100644
index 0000000..d9f2efb
--- /dev/null
+++ b/cpp.cpp
@@ -0,0 +1,10 @@
+#include "cpp.h"
+
+void CPP::PreprocessorTokensToTokens(std::vector<Token>& tokens)
+{
+ for (auto& i : tokens) {
+ if (i.type == "preprocessing-op-or-punc")
+ i.type = i.value;
+ }
+}
+