Makes diagnostic easier! A diagnostic library for parser / interpreter usages.
Nenggao is a diagnostic library mainly designed for Yakou Lang's compiler, though it's target for Yakou's development, you can still use it in your own project with its api, which has very good extendibility for customization.
Yes, I'm about to say this, this library is still not powerful enough to handle several scenarios, such as multi reference to same position. To avoid this, you should:
- Break up your error message, this can keep up readability
Here's a list of unworkable examples:
- Multiple Multiline labels refer to same line
- Multiple Single line label's span conflicted
This work is licensed under the MIT license.
Copyright (c) 2022 ChAoS-UnItY, all rights reserved.