|
|
We could add a flag to the `COMPILETIME MESSAGING OPTIONS:` called `-json-error-messages`.
|
|
|
Enabling this flag could output the compile time error messages in [json format](https://www.json.org/json-en.html).
|
|
|
|
|
|
This would allow for perhaps easier parsing of the error messages by other programs.
|
|
|
|
|
|
Just and idea of the format:
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"errors": [
|
|
|
{
|
|
|
"message": "No declaration of module, class, or main function given",
|
|
|
"location": {
|
|
|
"file": "Simple.sac",
|
|
|
"line": 0,
|
|
|
"column": 0
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"warnings": [{
|
|
|
"message": "No declaration of module, class, or main function given",
|
|
|
"location": {
|
|
|
"file": "Simple.sac",
|
|
|
"line": 0,
|
|
|
"column": 0
|
|
|
}
|
|
|
}]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
\ No newline at end of file |