You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following shortened/crafted input that triggers a parser error as shown in picture below, but does not halt execution / attempt to solve the given problem when called with: java -jar alpha.jar -i parser_error.lp
I suspect that there's some error recovery going on here but Alpha does not communicate well enough what it is doing (that it was able to recover from the error). Maybe someone can take the time to understand the recovery mechanism and improve it. That code wasn't touched in 3 years. If you run into trouble I can also pick this issue up, but I'm busy with other things these days...
Yes, what @lorenzleutgeb indicated seems to be the culprit. As far as I remember, what we do there is: first run the parser in a simplified mode that is faster but not guaranteed to parse all inputs successfully; if that fails, run the parser a second time in the slower mode correctly parsing all well-formed inputs. It seems that the ~ for strong negation (which is currently not supported by Alpha) trips the first parser run, but it can recover from there and hence won't trigger a second parsing run.
Since Alpha swallows all errors on the first parsing run, this does not halt execution of the solver. Probably the logic there needs some fixing (and the way how/what error listeners are given to Antlr).
The following shortened/crafted input that triggers a parser error as shown in picture below, but does not halt execution / attempt to solve the given problem when called with:
java -jar alpha.jar -i parser_error.lp
Alpha version used was downloaded from:
https://github.com/alpha-asp/Alpha/releases/download/v0.5.0/alpha.jar
The text was updated successfully, but these errors were encountered: