From 75af4cd77f021bdca69b8e3508ac2e488836140a Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Tue, 4 Oct 2022 19:58:17 +0300 Subject: [PATCH] fix: add DOUBLE_COLON --- include/compiler/treeifier/tokenizer.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/compiler/treeifier/tokenizer.hh b/include/compiler/treeifier/tokenizer.hh index 5bfb367..f252f6d 100644 --- a/include/compiler/treeifier/tokenizer.hh +++ b/include/compiler/treeifier/tokenizer.hh @@ -4,7 +4,7 @@ #include "utils/message.hh" #include "compiler/treeifier/lexer.hh" -namespace ppc::comp::tree::tok { +namespace ppc::comp::tree { enum operator_t { LESS_THAN, GREATER_THAN, @@ -55,6 +55,7 @@ namespace ppc::comp::tree::tok { COMMA, SEMICOLON, COLON, + DOUBLE_COLON, LAMBDA, @@ -180,7 +181,7 @@ namespace ppc::comp::tree::tok { } } - static tok::token_t parse(messages::msg_stack_t &msg_stack, lex::token_t token); + static token_t parse(messages::msg_stack_t &msg_stack, lex::token_t token); static std::vector parse_many(messages::msg_stack_t &msg_stack, std::vector tokens); };