From 2cffc9e13f8fc183e8c5db151dd7c35d3bbce833 Mon Sep 17 00:00:00 2001 From: ZOUG Date: Mon, 9 Jul 2018 23:00:31 -0300 Subject: [PATCH] Generated error messages for slotted expressions --- .../org/ruleml/psoa/psoa2x/psoa2prolog/PrologConverter.g | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PSOA2X/src/main/antlr3/org/ruleml/psoa/psoa2x/psoa2prolog/PrologConverter.g b/PSOA2X/src/main/antlr3/org/ruleml/psoa/psoa2x/psoa2prolog/PrologConverter.g index d3de95cb..2a7872df 100644 --- a/PSOA2X/src/main/antlr3/org/ruleml/psoa/psoa2x/psoa2prolog/PrologConverter.g +++ b/PSOA2X/src/main/antlr3/org/ruleml/psoa/psoa2x/psoa2prolog/PrologConverter.g @@ -253,6 +253,10 @@ psoa else replace(startIdx, 7, "sloterm"); } + else + { + throw new TranslatorException("Slotted expressions are not supported"); + } append(")"); } | // No slots or tuples @@ -311,4 +315,4 @@ constshort | LITERAL { convertStringConst($LITERAL.text); } | NUMBER { append($NUMBER.text); } | LOCAL { convertLocalConst($LOCAL.text); } - ; \ No newline at end of file + ;