Change the "gnu" message format.

Add the column to the location; this is something that GCC and other
GNU tools do, and is obviously useful for IDEs.

Move the message ID so that it reads e.g. "... [error 50]". This mimics
GCC's [-Wformat] kind of thing and is more obvious than the (50) that we
were using before.
This commit is contained in:
Ewan Mellor 2017-10-29 11:36:47 -07:00
parent 8f639f28dd
commit 4729fe8285
No known key found for this signature in database
GPG Key ID: 7CE1C6BC9EC8645D
1 changed files with 2 additions and 2 deletions

View File

@ -31,9 +31,9 @@ This file contains the actual layout of the messages emitted by ANTLR.
This file contains the format that mimicks GCC output.
*/
location(file, line, column) ::= "<file>:<line>:"
location(file, line, column) ::= "<file>:<line>:<column>:"
message(id, text) ::= "<text> (<id>)"
message(id, text) ::= "<text> [error <id>]"
report(location, message, type) ::= "<location> <type>: <message>"