def parse(self, left, token, right, parser): right_side = parser.expression(self.precedence) return PartialList([self.representation(), list.close_partial_lists(left), list.close_partial_lists(right_side)])
def parse(self, token, right, parser): within = parser.expression(self.precedence) if right.peek().purpose == "endline": right.next() return list.close_partial_lists(within)
def parse(self, token, right, parser): within = parser.expression(self.precedence) within = list.close_partial_lists(within) return PartialList([within])
def parse(self, token, right, parser): within = parser.expression(self.precedence) within = list.close_partial_lists(within) return List([self.representation(), within])