Skip to content

Commit

Permalink
Improved AntlrCommand inline doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ferraith committed Aug 30, 2018
1 parent a5d8753 commit 35f01c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setuptools_antlr/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ class AntlrCommand(setuptools.Command):
An extra command for setuptools to generate ANTLR based parsers, lexers, listeners and visitors.
The antlr command wraps the Java based generator provided by ANTLR developers. It searches for
all grammar files and generates a Python package containing a modules specified in the user
options. Please keep in mind that only grammars are generated which aren't included by other
grammars. This prevents generation of shared content like common terminals.
all grammar files. For each grammar a Python package is generated containing the modules
specified in the user options.
:cvar _MIN_JAVA_VERSION: Minimal version of java required by ANTLR
:cvar _EXT_LIB_DIR: Relative path to external libs directory
Expand Down Expand Up @@ -162,7 +161,7 @@ def finalize_options(self):
as late as possible, ie. after any option assignments from the command-line or from other
commands have been done.
"""
# parse grammars
# parse grammars option
if self.grammars:
self.grammars = shlex.split(self.grammars, comments=True)

Expand Down

0 comments on commit 35f01c5

Please sign in to comment.