aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-12-10 10:24:23 +0100
committerRenaud G <renaud@rolisteam.org>2018-12-10 10:24:23 +0100
commit0bc3bcb30a50a81e818109b949c1c5a500c89fe7 (patch)
tree1e08563aba60c980473cb1266744cfad13896442 /diceparser.cpp
parent06aac01fdcdb0b320b5c931b6b28f8a3cb2e74ed (diff)
downloadOneRoll-0bc3bcb30a50a81e818109b949c1c5a500c89fe7.tar.gz
OneRoll-0bc3bcb30a50a81e818109b949c1c5a500c89fe7.zip
add warning when no closing parenthesis
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 337efd0..e7b2612 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -209,6 +209,10 @@ bool DiceParser::readExpression(QString& str,ExecutionNode* & node)
}
return true;
}
+ else
+ {
+ m_warningMap.insert(ExecutionNode::BAD_SYNTAXE,QObject::tr("Expected closing parenthesis - can't validate the inside."));
+ }
}
}
else if(m_parsingToolbox->readOperand(str,operandNode))