summaryrefslogtreecommitdiff
path: root/src/errors
Commit message (Collapse)AuthorAge
* Large restructureBen Bridle2025-03-18
| | | | | Files were moved to be better organised, error messages were changed to be more general, and a Compiler type was added to the library.
* Simplify infallible indexing operations in resolverBen Bridle2025-02-10
| | | | | Indexing into a resolver with a pointer from the same resolver should never fail, and if it does we don't want to silently squash the error.
* Move report-printing structs to separate moduleBen Bridle2025-02-10
|
* Display name of symbol instead of full token in error messagesBen Bridle2025-02-08
| | | | | | | | When reporting an undefined symbol, the full token string of the symbol was being displayed. This was fine for Bedrock, which had at most one symbol per token, but for Torque you can have multiple symbols extracted from the same source string. The symbol name is displayed instead.
* Implement source unit compilation, symbol resolution, error reportingBen Bridle2025-02-05
This library can now carry out all stages of assembly from collecting source fragments to resolving symbols to pruning unused libraries to generating a single compiled source file. Pretty-printing of state has also been implemented in this library. The source tree hierarchy, symbol resolution errors, and file read errors can all be printed in a tidy format.