mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-13 09:02:10 +00:00
Changed name of evalEqu to varOperation
This commit is contained in:
parent
d761591b14
commit
4d820e24aa
@ -331,7 +331,7 @@ bool BooleanLogic(const string& valA, const string& determinant, const string& v
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int evalEqu(const vector<string>& str, unordered_map<string, any>& variableValues)
|
int varOperation(const vector<string>& str, unordered_map<string, any>& variableValues)
|
||||||
{
|
{
|
||||||
if (IsVar(str[0], variableValues))
|
if (IsVar(str[0], variableValues))
|
||||||
{
|
{
|
||||||
@ -418,7 +418,7 @@ any ProcessLine(const vector<vector<string>>& words, const int lineNum, unordere
|
|||||||
else if (IsVar(words[lineNum][0], variableValues))
|
else if (IsVar(words[lineNum][0], variableValues))
|
||||||
{
|
{
|
||||||
// Evaluates what the operator (ex. '=', '+=') does to the value on the left by the value on the right
|
// Evaluates what the operator (ex. '=', '+=') does to the value on the left by the value on the right
|
||||||
evalEqu(vector<string>(words[lineNum].begin(), words[lineNum].end()), variableValues);
|
varOperation(vector<string>(words[lineNum].begin(), words[lineNum].end()), variableValues);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user