(self, ins)
Parse COMMON syntax.
Parse COMMON syntax.
Parse COMMON syntax .
def _parse_common_args(self, ins):
        """Parse COMMON syntax."""
        if ins.skip_blank() in tk.END_STATEMENT:
            return
        while True:
            name = self.parser.parse_name(ins)
            bracket = ins.skip_blank_read_if((b'(', b'['))
            if bracket:
                # a literal is allowed but ignored;
                # for sqare brackets, it's a syntax error if omitted
                if (bracket == b'[') or ins.peek() in set(DIGITS) | set(tk.NUMBER):
                    x = self.parser.expression_parser.read_number_literal(ins)
                ins.require_read((b')', b']'))
            # entries with square brackets are completely ignored!
            if bracket != b'[':
                yield name, bracket
            if not ins.skip_blank_read_if((b',',)):
                break
        ins.require_end()
def _parse_common_args ( self , ins ) : if ins . skip_blank ( ) in tk . END_STATEMENT : return while True : name = self . parser . parse_name ( ins ) bracket = ins . skip_blank_read_if ( ( b'(' , b'[' ) ) if bracket : # a literal is allowed but ignored; # for sqare brackets, it's a syntax error if omitted if ( bracket == b'[' ) or ins . peek ( ) in set ( DIGITS ) | set ( tk . NUMBER ) : x = self . parser . expression_parser . read_number_literal ( ins ) ins . require_read ( ( b')' , b']' ) ) # entries with square brackets are completely ignored! if bracket != b'[' : yield name , bracket if not ins . skip_blank_read_if ( ( b',' , ) ) : break ins . require_end ( )