It could be improved to something like: catch argument is missing or argument is missing if it's used in similar structures.
also this (javascript like) :
try {
} catch (e) { }
will raise extraneous input '(' expecting RULE_ID and no viable alternative at input ')'
I think the first one could be changed to extraneous input '(' expecting argument , reference or something like that.
@alete89 , ok, fijate si podés capturar los mensajes del parser. No es fácil poder resolverlo puntualmente para los catch y que no encaje en otro patrón similar.
the following block will raise
missing RULE_ID at '{'
Error in Problems.It could be improved to something like:
catch argument is missing
orargument is missing
if it's used in similar structures.also this (javascript like) :
will raise
extraneous input '(' expecting RULE_ID
andno viable alternative at input ')'
I think the first one could be changed toextraneous input '(' expecting argument
,reference
or something like that.