diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-03-23 22:02:40 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-03-23 22:02:40 +0100 |
commit | fce1c18103f208857af477ca47af9aa908bd69b6 (patch) | |
tree | 3d0affeca1328825e81be8950f19e956f39ab213 /cpp.cpp | |
parent | 365183e243d164185bca6ad9fa4e0d75664800f4 (diff) |
Helper functions for grammer
Diffstat (limited to 'cpp.cpp')
-rw-r--r-- | cpp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -198,7 +198,7 @@ std::vector<Token> CPP::tokens_from_pptokens(std::vector<Token> pp_tokens) if (pp_types.find(token.type) != pp_types.end()) { if (token.type == "identifier") { if (keywords.find(token.value) != keywords.end()) - result.emplace_back(token.value, token.value); + result.emplace_back(Token{token.value, token.value}); else result.emplace_back(Token{"identifier"s, token.value}); } |