drj826 / SML

This is the Perl 5 implementation of the SML code library. SML is a minimalistic plain text descriptive markup language which is human readable, enables continuous integration of documentation, expresses and validates semantic relationships, is easy to edit, is easy to generate automatically, and publishes professional documentation from plain text manuscripts.
GNU General Public License v3.0
2 stars 2 forks source link

Promote 'location' from String to Object for Better Error Reporting #71

Closed drj826 closed 8 years ago

drj826 commented 8 years ago

For better error reporting, promote 'location' from a string to an object. Within the object separate file, path, and line attributes.

drj826 commented 8 years ago

I've decided to simplify error reporting without promoting location to a string. The SML::Line and SML::File classes already have the necessary information so I just did a little refactoring instead.

Error locations are now reported to the screen during parsing and publishing so you can begin investigating errors right away even before the program is done.

Directory paths are now omitted from locations. I think they were unnecessary.