(self, tokens, command)
return res
Parses a list of types from the tokens
Parses a list of types from the tokens
Parses a list of types from the tokens
def parse_params(self, tokens, command):
        """Parses a list of types from the tokens"""
        self.consume_opening(tokens, command)
        current = tokens.consume("Unexpected end of stream in %s command." %
                                         command)
        res = []
        while current != ")":
            res.append(self.parse_type(tokens, command, additional_token=current))
            current = tokens.consume("Unexpected end of stream in %s command." %
                                             command)
        return res
def parse_params ( self , tokens , command ) : self . consume_opening ( tokens , command ) current = tokens . consume ( "Unexpected end of stream in %s command." % command ) res = [ ] while current != ")" : res . append ( self . parse_type ( tokens , command , additional_token = current ) ) current = tokens . consume ( "Unexpected end of stream in %s command." % command ) return res