qupa-project / uniview-lang

View once immutability enabling the safeties of immutable code, while enjoying near procedural performance
https://uniview.qupa.org
MIT License
2 stars 0 forks source link

~Tweaked error message display #12

Closed AjaniBilby closed 3 years ago

AjaniBilby commented 3 years ago

Error messages now embed a summarised code snippet of the affecting areas

E.g.

C:\Users\Ajani\Documents\GitHub\uniview-lang>uvc test.uv
Parsing: C:\Users\Ajani\Documents\GitHub\uniview-lang\test.uv
Parsing: C:\Users\Ajani\Documents\GitHub\uniview-lang\std\print.uv
Linking...
Processing...

C:\Users\Ajani\Documents\GitHub\uniview-lang\test.uv:
 Error: Unable to merge possible states at (20:8) due to
  'c' is undefined from (10:2)
 10 |   int c;
 11 |
  * |
 19 |
 20 |   print(c);

Uncompilable errors