Add a note to the documentation regarding -message-format gnu's suitability

for Xcode.

Mention use of -o while we're here.
This commit is contained in:
Ewan Mellor 2017-10-29 12:12:05 -07:00
parent 4729fe8285
commit 63d83a8bcc
No known key found for this signature in database
GPG Key ID: 7CE1C6BC9EC8645D
1 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,16 @@ except you need to specify the language target, for example:
```
$ antlr4 -Dlanguage=Swift MyGrammar.g4
```
If you integrate this as a build step inside Xcode, then you should use the
"gnu" message format to have any error messages parsed by Xcode. You may
also want to use the `-o` option to put the autogenerated files in a
separate subdirectory.
```
antlr4 -Dlanguage=Swift -message-format gnu -o Autogen MyGrammar.g4
```
For a full list of antlr4 tool options, please visit the
[tool documentation page](tool-options.md).