Skip to content

Commit 2cffc9e

Browse files
authored
Generated error messages for slotted expressions
1 parent 786bedd commit 2cffc9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PSOA2X/src/main/antlr3/org/ruleml/psoa/psoa2x/psoa2prolog/PrologConverter.g

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ psoa
253253
else
254254
replace(startIdx, 7, "sloterm");
255255
}
256+
else
257+
{
258+
throw new TranslatorException("Slotted expressions are not supported");
259+
}
256260
append(")");
257261
}
258262
| // No slots or tuples
@@ -311,4 +315,4 @@ constshort
311315
| LITERAL { convertStringConst($LITERAL.text); }
312316
| NUMBER { append($NUMBER.text); }
313317
| LOCAL { convertLocalConst($LOCAL.text); }
314-
;
318+
;

0 commit comments

Comments
 (0)