pyebnf/compiler.py
def _get_imports(self):
    """Reads the directives and generates source code for custom imports."""
    import_directives = [d for d in self.directives if d.name == "import"]
    if import_directives:
      return "\n" + "\n".join(d.args["value"] for d in import_directives)
    else:
      return ""
def _get_imports(self):
    import_directives = [d for d in self.directives if d.name == "import"]
    if import_directives:
      return "\n" + "\n".join(d.args["value"] for d in import_directives)
    else:
      return ""
def _get_imports ( self ) : import_directives = [ d for d in self . directives if d . name == "import" ] if import_directives : return "\n" + "\n" . join ( d . args [ "value" ] for d in import_directives ) else : return ""
Reads the directives and generates source code for custom imports.
Reads the directives and generates source code for custom imports .