potassco / aspcud

A solver for package problems in CUDF format
https://potassco.org/aspcud/
MIT License
26 stars 5 forks source link

Add more context to cudf2lp errors #12

Open hugosenari opened 1 year ago

hugosenari commented 1 year ago

If we could inform the line of parser error, would be helpful. ie: like when we forgot to add space after request:

ERROR: syntax error::

rkaminsk commented 1 year ago

The cudf format makes it hard to add location tracking using standard lexer/parser generators. If there wouldn't be the line continuations with leading blanks, I would have implemented better error messages. I am sure it would be possible to implement something but it is not straight forward.