Skip to content
Snippets Groups Projects
Commit 17658601 authored by lucien.noel's avatar lucien.noel
Browse files

analyse de l'opération 'non' terminée

parent 00b7ce29
Branches
No related tags found
No related merge requests found
......@@ -204,6 +204,11 @@ public class SemanticAnalyzer implements ASTVisitor {
public Object visit(Non node) {
node.getOperand().accept(this);
if(!isExpressionBooleen(node.getOperand())){
throw new RuntimeException("impossible d'effectuer l'opération 'non' sur des valeurs non-booléennes !");
}
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment