diff --git a/app/imports/parser/grammar.js b/app/imports/parser/grammar.js index 064fc2f2..22d323c0 100644 --- a/app/imports/parser/grammar.js +++ b/app/imports/parser/grammar.js @@ -79,7 +79,7 @@ let ParserRules = [ {"name": "exponentExpression", "symbols": ["unaryExpression"], "postprocess": id}, {"name": "unaryExpression", "symbols": [(lexer.has("additiveOperator") ? {type: "additiveOperator"} : additiveOperator), "_", "unaryExpression"], "postprocess": d => node.unaryOperator.create({operator: d[0].value, right: d[2]})}, {"name": "unaryExpression", "symbols": ["notExpression"], "postprocess": id}, - {"name": "notExpression", "symbols": [(lexer.has("notOperator") ? {type: "notOperator"} : notOperator), "_", "notExpression"], "postprocess": d => node.notOperator.create({right: d[2]})}, + {"name": "notExpression", "symbols": [(lexer.has("notOperator") ? {type: "notOperator"} : notOperator), "_", "notExpression"], "postprocess": d => node.not.create({right: d[2]})}, {"name": "notExpression", "symbols": ["callExpression"], "postprocess": id}, {"name": "callExpression", "symbols": ["name", "_", "arguments"], "postprocess": d => node.call.create({functionName: d[0].name, args: d[2]}) diff --git a/app/imports/parser/grammar.ne b/app/imports/parser/grammar.ne index 82681659..ddb0e884 100644 --- a/app/imports/parser/grammar.ne +++ b/app/imports/parser/grammar.ne @@ -109,7 +109,7 @@ unaryExpression -> | notExpression {% id %} notExpression -> - %notOperator _ notExpression {% d => node.notOperator.create({right: d[2]})%} + %notOperator _ notExpression {% d => node.not.create({right: d[2]})%} | callExpression {% id %} callExpression -> diff --git a/app/imports/ui/creature/slots/SlotFillDialog.vue b/app/imports/ui/creature/slots/SlotFillDialog.vue index c5c0180d..0b63870f 100644 --- a/app/imports/ui/creature/slots/SlotFillDialog.vue +++ b/app/imports/ui/creature/slots/SlotFillDialog.vue @@ -377,6 +377,7 @@ export default { disabledNodeCount += 1; } } catch (e){ + console.warn(e); let error = prettifyParseError(e); node._disabledBySlotFillerCondition = true; node._conditionError = error;