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
Add the line "sage:0905|" (or another syntactically incorrect entry) somewhere into "dct/data/mrf/fs_lex"
Run nullist-uus-sonastik.sh
After a while the script stops and prints "Ei leia , märki" to the console
It would be better if every (or also just the first) line that contains a syntax error is output along with the line number and lexicon source file name. This would make locating the errors computationally tractable.
While the lexicon source distributed with Vabamorf do not contain any errors, lexicons automatically generated from external resources most likely will (during the development of conversion scripts).
The text was updated successfully, but these errors were encountered:
The use case that I have in mind is somebody developing a converter from a more human readable lexicon format to the Vabamorf lexicon format. It would be good then if the lexicon compiler could provide more detailed feedback. (Ideally there could be an API for adding entries dynamically at runtime, and not from strings but structured objects, but that's another issue.)
But use cases are unpredictable. My main argument is that "Ei leia , märki" is simply a very bad error message. A compiler should say more than just ERROR, especially if it parses line by line so that reporting line numbers is straightforward. So I do find that this is an issue, one that should be resolved in long term at least.
Steps to reproduce:
nullist-uus-sonastik.sh
It would be better if every (or also just the first) line that contains a syntax error is output along with the line number and lexicon source file name. This would make locating the errors computationally tractable.
While the lexicon source distributed with Vabamorf do not contain any errors, lexicons automatically generated from external resources most likely will (during the development of conversion scripts).
The text was updated successfully, but these errors were encountered: