#pragma once #include #include #include "lexer/enum_type.h" using namespace std; namespace ov4 { class T_property { public: int operand_number = 0; bool continuable = true; int pivot_priority = -1; enum_token_type enum_type = TEXT; }; unordered_map symbol_property = { // non-operator {"\'", {.enum_type = SINGLE_QUOTATION}}, {"\"", {.enum_type = SINGLE_QUOTATION}}, // bracket {"(", {.continuable = false, .enum_type = LEFT_BRACKET}}, {")", {.continuable = false, .enum_type = RIGHT_BRACKET}}, // operator {"&", {.operand_number = 1, .continuable = true, .pivot_priority = 1000, .enum_type = ASYNC}}, {"|", {.operand_number = 1, .continuable = true, .pivot_priority = 100, .enum_type = PIPE}}, {"&&", {.operand_number = 1, .continuable = true, .pivot_priority = 1000, .enum_type = LOGIC_AND}}, {"||", {.operand_number = 1, .continuable = true, .pivot_priority = 1000, .enum_type = LOGIC_OR}}, }; }