(self)
return TableConstructor(fields, start=pos, end=self._pos)
Parse a tableconstructor.

        tableconstructor ::= '{' [fieldlist] '}'

        fieldlist ::= field {fieldsep field} [fieldsep]

        fieldsep ::= ',' | ';'

        Returns:
          TableConstructor(fields)
Parse a tableconstructor.
Parse a tableconstructor .
def _tableconstructor(self):
        """Parse a tableconstructor.

        tableconstructor ::= '{' [fieldlist] '}'

        fieldlist ::= field {fieldsep field} [fieldsep]

        fieldsep ::= ',' | ';'

        Returns:
          TableConstructor(fields)
        """
        pos = self._pos
        if self._accept(lexer.TokSymbol(b'{')) is None:
            return None

        fields = []
        field = self._field()
        if field is not None:
            fields.append(field)
        while (self._accept(lexer.TokSymbol(b',')) is not None or
               self._accept(lexer.TokSymbol(b';')) is not None):
            field = self._field()
            if field is None:
                break
            fields.append(field)

        self._expect(lexer.TokSymbol(b'}'))
        return TableConstructor(fields, start=pos, end=self._pos)
def _tableconstructor ( self ) : pos = self . _pos if self . _accept ( lexer . TokSymbol ( b'{' ) ) is None : return None fields = [ ] field = self . _field ( ) if field is not None : fields . append ( field ) while ( self . _accept ( lexer . TokSymbol ( b',' ) ) is not None or self . _accept ( lexer . TokSymbol ( b';' ) ) is not None ) : field = self . _field ( ) if field is None : break fields . append ( field ) self . _expect ( lexer . TokSymbol ( b'}' ) ) return TableConstructor ( fields , start = pos , end = self . _pos )