correction console

This commit is contained in:
Mylloon 2021-03-31 18:25:35 +02:00
parent 7e7d8d6504
commit 8ab9a4f64a

View file

@ -9,27 +9,27 @@ const main = () => {
}; };
let exemple = "a && b || c" let exemple = "a && b || c"
console.error(exemple, "\n=", parseLogicalExpression(def, exemple)); console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
console.log("vrai rep d'apres JS:", def.a && def.b || def.c); console.log("vrai rep d'apres JS:", def.a && def.b || def.c);
console.log("\n\n-----\n\n "); console.log("\n\n-----\n\n ");
exemple = "!a && b || c && a || c && b && a" exemple = "!a && b || c && a || c && b && a"
console.error(exemple, "\n=", parseLogicalExpression(def, exemple)); console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
console.log("vrai rep d'apres JS:", !def.a && def.b || def.c && def.a || def.c && def.b && def.a); console.log("vrai rep d'apres JS:", !def.a && def.b || def.c && def.a || def.c && def.b && def.a);
console.log("\n\n-----\n\n "); console.log("\n\n-----\n\n ");
exemple = "a || b || a && b && c || c" exemple = "a || b || a && b && c || c"
console.error(exemple, "\n=", parseLogicalExpression(def, exemple)); console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
console.log("vrai rep d'apres JS:", def.a || def.b || def.a && def.b && def.c || def.c); console.log("vrai rep d'apres JS:", def.a || def.b || def.a && def.b && def.c || def.c);
console.log("\n\n-----\n\n "); console.log("\n\n-----\n\n ");
exemple = "a || a && !a && !b || !a" exemple = "a || a && !a && !b || !a"
console.error(exemple, "\n=", parseLogicalExpression(def, exemple)); console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
console.log("vrai rep d'apres JS:", def.a || def.a && !def.a && !def.b || !def.a); console.log("vrai rep d'apres JS:", def.a || def.a && !def.a && !def.b || !def.a);
console.log("\n\n-----\n\n "); console.log("\n\n-----\n\n ");
exemple = "(a || b) || (a && b) && c" exemple = "(a || b) || (a && b) && c"
console.error(exemple, "\n=", parseLogicalExpression(def, exemple)); console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
console.log("vrai rep d'apres JS:", def.a || def.b || def.a && def.b && def.c || def.c); console.log("vrai rep d'apres JS:", def.a || def.b || def.a && def.b && def.c || def.c);
}; };