(self, writer_cls=None, writer_args=None)
Generates lines of Lua source based on the parser output.

        Args:
          writer_cls: The writer class to use. If None, defaults to
            LuaEchoWriter.
          writer_args: Args for the writer.

        Yields:
          A line of Lua code, as a P8SCII bytestring.
Generates lines of Lua source based on the parser output.
Generates lines of Lua source based on the parser output .
def to_lines(self, writer_cls=None, writer_args=None):
        """Generates lines of Lua source based on the parser output.

        Args:
          writer_cls: The writer class to use. If None, defaults to
            LuaEchoWriter.
          writer_args: Args for the writer.

        Yields:
          A line of Lua code, as a P8SCII bytestring.
        """
        if writer_cls is None:
            writer_cls = LuaEchoWriter
        writer = writer_cls(tokens=self._lexer.tokens, root=self._parser.root,
                            args=writer_args)
        for line in writer.to_lines():
            yield line
def to_lines ( self , writer_cls = None , writer_args = None ) : if writer_cls is None : writer_cls = LuaEchoWriter writer = writer_cls ( tokens = self . _lexer . tokens , root = self . _parser . root , args = writer_args ) for line in writer . to_lines ( ) : yield line