1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-12-22 08:54:28 +00:00

consistent boolean notation

This commit is contained in:
2016-04-19 19:21:05 -07:00
parent 60170db570
commit 9edec3709b
12 changed files with 16 additions and 16 deletions

View File

@@ -478,7 +478,7 @@ void SemicolonNode::compile(Program &program, RunContext &context) const
bool isSemiColumn = isDerivedFrom<SemicolonNode>(&n[i]);
bool isKeyword = isDerivedFrom<KeywordNode>(&n[i]);
if (isAssign||isSemiColumn||isKeyword)
if (isAssign or isSemiColumn or isKeyword)
{
n[i].compile(program, context);
}
@@ -513,7 +513,7 @@ void AssignNode::compile(Program &program, RunContext &context) const
}
// MathOpNode compile //////////////////////////////////////////////////////////
#define IFNODE(name, nArg) if ((n.getName() == (name))&&(n.getNArg() == nArg))
#define IFNODE(name, nArg) if ((n.getName() == (name)) and (n.getNArg() == nArg))
#define ELIFNODE(name, nArg) else IFNODE(name, nArg)
#define ELSE else
@@ -703,7 +703,7 @@ void MathInterpreter::compile(RunContext &context)
}
}
}
if (!root_||!gotReturn)
if (!root_ or !gotReturn)
{
LATAN_ERROR(Syntax, "expected 'return' in program '" + codeName_
+ "'");