(self)
return Chunk(stats, start=pos, end=self._pos)
Parse a chunk / block.

        chunk :: = {stat [';']} [laststat [';']]

        Returns:
          Chunk(stats)
Parse a chunk / block.
Parse a chunk / block .
def _chunk(self):
        """Parse a chunk / block.

        chunk :: = {stat [';']} [laststat [';']]

        Returns:
          Chunk(stats)
        """
        pos = self._pos
        stats = []
        while True:
            # Eat leading and intervening semicolons.
            while self._accept(lexer.TokSymbol(b';')) is not None:
                pass
            stat = self._stat()
            if stat is None:
                break
            stats.append(stat)

        # Eat leading and intervening semicolons.
        while self._accept(lexer.TokSymbol(b';')) is not None:
            pass

        laststat = self._laststat()
        if laststat is not None:
            stats.append(laststat)

        # Eat trailing semicolons.
        while self._accept(lexer.TokSymbol(b';')) is not None:
            pass

        return Chunk(stats, start=pos, end=self._pos)
def _chunk ( self ) : pos = self . _pos stats = [ ] while True : # Eat leading and intervening semicolons. while self . _accept ( lexer . TokSymbol ( b';' ) ) is not None : pass stat = self . _stat ( ) if stat is None : break stats . append ( stat ) # Eat leading and intervening semicolons. while self . _accept ( lexer . TokSymbol ( b';' ) ) is not None : pass laststat = self . _laststat ( ) if laststat is not None : stats . append ( laststat ) # Eat trailing semicolons. while self . _accept ( lexer . TokSymbol ( b';' ) ) is not None : pass return Chunk ( stats , start = pos , end = self . _pos )