This commit is contained in:
2026-10-05 11:21:24 +03:00
parent bc4fbafec4
commit 5fdcef4dd7
+2 -9
View File
@@ -5,14 +5,6 @@
namespace Syntax { namespace Syntax {
#if 0
struct OpImportance
{
//int pos;
int prio;
};
#endif
#if 0 #if 0
std::vector<SyntaxIssue> check_syntax(std::vector<Expression::Token>& tv); std::vector<SyntaxIssue> check_syntax(std::vector<Expression::Token>& tv);
{ {
@@ -21,7 +13,8 @@ std::vector<SyntaxIssue> check_syntax(std::vector<Expression::Token>& tv);
#endif #endif
// get mop = Math OPerator index // get mop = Math OPerator location (=absolute index in std::vector<Expression::Token>)
// mapper of 'priority vector index' -> 'token vector index'
static int get_mop_location(const std::vector<Expression::Token>& v, int position) static int get_mop_location(const std::vector<Expression::Token>& v, int position)
{ {
int i = 0, l = v.size(), p = -1; int i = 0, l = v.size(), p = -1;