AST building #2

Merged
TopchetoEU merged 74 commits from TopchetoEU/ast-building into master 2022-10-28 11:58:03 +00:00
Showing only changes of commit 75af4cd77f - Show all commits

View File

@ -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<token_t> parse_many(messages::msg_stack_t &msg_stack, std::vector<lex::token_t> tokens);
};