def parse_list(self):
try:<EOL><INDENT>return List([self.parse() for _ in<EOL>self.collect_tokens_until('<STR_LIT>')])<EOL><DEDENT>except IncompatibleItemType as exc:<EOL><INDENT>raise self.error(f'<STR_LIT>'<EOL>f'<STR_LIT>') from None<EOL><DEDENT>
Parse a list from the token stream.