From 1c630655b2beb0f4b84fb7e1bc034ba62520be37 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 21 Sep 2026 04:50:06 +0000 Subject: fix name typo, and remove outdated parse --- src/lang_analysis/symbol_property.cc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/lang_analysis/symbol_property.cc (limited to 'src/lang_analysis/symbol_property.cc') diff --git a/src/lang_analysis/symbol_property.cc b/src/lang_analysis/symbol_property.cc new file mode 100644 index 0000000..bb5015c --- /dev/null +++ b/src/lang_analysis/symbol_property.cc @@ -0,0 +1,29 @@ +#include "lang_analysis/symbol_property.h" + +#include + +#include "lang_analysis/enum_type.h" + +using namespace std; + +namespace ov4 +{ + +string symbol_enum2string(enum_token_type e) +{ + for (auto &c : symbol_property) + { + // pair + + if (c.second.enum_type == e) + return c.first; + } + return ""; +} + +bool symbol_contains_enum_type(enum_token_type e) +{ + return (symbol_enum2string(e) == "") ? false : true; +} + +} -- cgit v1.3.1-4-g156e