diagnose: create a simple to show-off the library

This commit is contained in:
Mesabloo 2021-08-15 20:52:52 +02:00
parent 402bb22274
commit d81c9d6e10
3 changed files with 16 additions and 0 deletions

16
README.md Normal file
View File

@ -0,0 +1,16 @@
# Error reporting made easy
Diagnose is a small library used to report compiler/interpreter errors in a beautiful yet readable way.
As a great example, here's the output of the last test:
![first example](./assets/real-world-example-unicode.png)
If you do not like unicode characters, or choose to target platforms which cannot output them natively;
you may alternatively print the whole diagnostic with ASCII characters, like this:
![second example](./assets/real-world-example-ascii.png)
-----------------
Copyright (c) 2021 Mesabloo, all rights reserved.

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB