pyebnf/compiler.py
def grammar(self):
    """The parse tree generated by the source."""
    if self._grammar is None:
      self.parser = Parser()
      grammar = self.parser.parse(self.input_source)
      self._grammar = grammar.trimmed().flattened().flattened(self._flatten)
    return self._grammar
def grammar(self):
    if self._grammar is None:
      self.parser = Parser()
      grammar = self.parser.parse(self.input_source)
      self._grammar = grammar.trimmed().flattened().flattened(self._flatten)
    return self._grammar
def grammar ( self ) : if self . _grammar is None : self . parser = Parser ( ) grammar = self . parser . parse ( self . input_source ) self . _grammar = grammar . trimmed ( ) . flattened ( ) . flattened ( self . _flatten ) return self . _grammar
The parse tree generated by the source.
The parse tree generated by the source .