forked from jasder/antlr
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:
parent
8f639f28dd
commit
4729fe8285
|
@ -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.
|
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>"
|
report(location, message, type) ::= "<location> <type>: <message>"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue