From aecad7c53a90ab458642ef4f18e99a12617a0c25 Mon Sep 17 00:00:00 2001 From: islikpas Date: Sun, 15 Nov 2020 09:18:59 +0100 Subject: [PATCH] gitignore und Kommentare angepasst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gitignore: - .idea generell hinzugefügt Kommentare auf Englisch übersetzt --- .gitignore | 4 ++-- src/lib/logic-eval.js | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index aea7667..3a1bea6 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -.idea/misc.xml -.idea/workspace.xml + +.idea diff --git a/src/lib/logic-eval.js b/src/lib/logic-eval.js index 1c17666..4d08892 100644 --- a/src/lib/logic-eval.js +++ b/src/lib/logic-eval.js @@ -4,7 +4,8 @@ import { getBinaryArrayFromDecimal } from './binary'; const ShuntingYard = require('./shunting-yard'); /** - * Der Äquivalenz-Operator muss vor dem Implikation-Operator angegeben werden, da gemeinsame Alternative Zeichen verwendet werden. + * The equivalence-operator must be added before the implication-operator, + * because some of the alternativ operators used for implication are also used for equivalence. * @type {{"→": [string, string, string], "↔": [string, string, string], "∧": [string, string], "∨": [string, string], "¬": [string, string]}} */ const mappedOperators = { @@ -106,11 +107,6 @@ const parseRPN = (string, values) => { return result; }; -/** - * Ersetzt alternative Operatoren mit dem "Originalen" Operator - * @param expression - * @returns {*} - */ const exchangeAlternativeOperators = expression => { const operators = Object.keys(mappedOperators);