code: def parse_document(lexer: Lexer) -> DocumentNode:
      
      start = lexer.token
      return DocumentNode(
          definitions=many_nodes(lexer, TokenKind.SOF, parse_definition, TokenKind.EOF),
          loc=loc(lexer, start),
      )
docs: Document: Definition+