forked from jasder/antlr
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:
parent
4729fe8285
commit
63d83a8bcc
|
@ -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).
|
||||
|
||||
|
|
Loading…
Reference in New Issue