code: def substatements(self) -> List[Statement]:
          
          res = []
          self.opt_separator()
          while self.peek() != "}":
              res.append(self.statement())
              self.opt_separator()
          self.offset += 1
          return res
docs: Parse substatements.
  
          Raises:
              EndOfInput: If past the end of input.