From fce1c18103f208857af477ca47af9aa908bd69b6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 23 Mar 2020 22:02:40 +0100 Subject: Helper functions for grammer --- cpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp.cpp') diff --git a/cpp.cpp b/cpp.cpp index 69ca847..f59859d 100644 --- a/cpp.cpp +++ b/cpp.cpp @@ -198,7 +198,7 @@ std::vector CPP::tokens_from_pptokens(std::vector 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}); } -- cgit v1.2.3