diff options
Diffstat (limited to 'include/lang_analysis/symbol_property.h')
| -rw-r--r-- | include/lang_analysis/symbol_property.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/lang_analysis/symbol_property.h b/include/lang_analysis/symbol_property.h index d0acc7a..8266408 100644 --- a/include/lang_analysis/symbol_property.h +++ b/include/lang_analysis/symbol_property.h @@ -32,10 +32,12 @@ inline const std::unordered_map<std::string, T_property> symbol_property = { {")", {.continuable = false, .enum_type = RIGHT_BRACKET}}, // operator - {"&", {.continuable = true, .pivot_priority = 2000, .left = child_existence_type::EXIST, .right = child_existence_type::NOT_EXIST, .enum_type = ASYNC}}, - {"|", {.continuable = true, .pivot_priority = 100, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = PIPE}}, - {"&&", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_AND}}, - {"||", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_OR}}, + {"&", {.continuable = true, .pivot_priority = 2000, .left = child_existence_type::EXIST, .right = child_existence_type::NOT_EXIST, .enum_type = ASYNC}}, + {"|", {.continuable = true, .pivot_priority = 100, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = PIPE}}, + {"&&", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_AND}}, + {"||", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_OR}}, + + {";", {.continuable = false, .pivot_priority = 2000, .left = child_existence_type::EXIST, .right = child_existence_type::OPTIONAL, .enum_type = SEMICOLON}}, }; |
