cl-ds / data /generated /cl-algebraic-data-type_generated.jsonl
j14i's picture
3375 CL macro transformation examples from 85 libraries
43203b4 verified
{"macro_name":"SET-DATA","library":"cl-algebraic-data-type","call_form":"(set-data)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO SET-DATA:\n too few elements in\n ()\n to satisfy lambda list\n (OBJ (NAME &REST NEW-VALUES)):\n exactly 2 expected, but got 0"}
{"macro_name":"SET-DATA","library":"cl-algebraic-data-type","call_form":"(set-data nil)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO SET-DATA:\n too few elements in\n (NIL)\n to satisfy lambda list\n (OBJ (NAME &REST NEW-VALUES)):\n exactly 2 expected, but got 1"}
{"macro_name":"SET-DATA","library":"cl-algebraic-data-type","call_form":"(set-data nil nil)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO SET-DATA:\n too few elements in\n ()\n to satisfy lambda list\n (NAME &REST NEW-VALUES):\n at least 1 expected, but got 0"}
{"macro_name":"SET-DATA","library":"cl-algebraic-data-type","call_form":"(set-data nil (progn))","expanded":"(let ((#:once133 nil))\n (psetf))","status":"verified"}
{"macro_name":"SET-DATA","library":"cl-algebraic-data-type","call_form":"(set-data nil :key nil)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO SET-DATA:\n too many elements in\n (NIL :KEY NIL)\n to satisfy lambda list\n (OBJ (NAME &REST NEW-VALUES)):\n exactly 2 expected, but got 3"}
{"macro_name":"SET-DATA","library":"cl-algebraic-data-type","call_form":"(set-data 'lol-gen::some-name)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO SET-DATA:\n too few elements in\n ('LOL-GEN::SOME-NAME)\n to satisfy lambda list\n (OBJ (NAME &REST NEW-VALUES)):\n exactly 2 expected, but got 1"}
{"macro_name":"MATCH","library":"cl-algebraic-data-type","call_form":"(match)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO MATCH:\n too few elements in\n ()\n to satisfy lambda list\n (ADT OBJ &BODY CLAUSES):\n at least 2 expected, but got 0"}
{"macro_name":"MATCH","library":"cl-algebraic-data-type","call_form":"(match nil)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO MATCH:\n too few elements in\n (NIL)\n to satisfy lambda list\n (ADT OBJ &BODY CLAUSES):\n at least 2 expected, but got 1"}
{"macro_name":"MATCH","library":"cl-algebraic-data-type","call_form":"(match nil\n nil)","expanded":"(let ((#:obj-134 nil))\n (check-type #:obj-134 nil)\n (etypecase #:obj-134))","status":"verified"}
{"macro_name":"MATCH","library":"cl-algebraic-data-type","call_form":"(match nil\n (progn))","expanded":"(let ((#:obj-135 (progn)))\n (check-type #:obj-135 nil)\n (etypecase #:obj-135))","status":"verified"}
{"macro_name":"MATCH","library":"cl-algebraic-data-type","call_form":"(match nil\n :key\n nil)","expanded":"(let ((#:obj-136 :key))\n (check-type #:obj-136 nil)\n (etypecase #:obj-136\n (nil\n (with-data nil\n #:obj-136))))","status":"verified"}
{"macro_name":"MATCH","library":"cl-algebraic-data-type","call_form":"(match 'lol-gen::some-name)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO MATCH:\n too few elements in\n ('LOL-GEN::SOME-NAME)\n to satisfy lambda list\n (ADT OBJ &BODY CLAUSES):\n at least 2 expected, but got 1"}
{"macro_name":"DEFDATA","library":"cl-algebraic-data-type","call_form":"(defdata)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO DEFDATA:\n too few elements in\n ()\n to satisfy lambda list\n (ADT-NAME &BODY CONSTRUCTORS):\n at least 1 expected, but got 0"}
{"macro_name":"DEFDATA","library":"cl-algebraic-data-type","call_form":"(defdata nil)","expanded":"(eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (nil (:constructor nil) (:copier nil) (:predicate nil)\n (:include algebraic-data-type)))\n 'nil)","status":"verified"}
{"macro_name":"DEFDATA","library":"cl-algebraic-data-type","call_form":"(defdata nil\n nil)","expanded":"(eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (nil (:constructor nil) (:copier nil) (:predicate nil)\n (:include algebraic-data-type)))\n (progn\n (eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (nil (:include nil) (:constructor %nil) (:copier nil) (:predicate nil)\n (:print-function\n (lambda (#:object-141 #:stream-142 #:depth-143)\n (declare (ignore #:depth-143)\n (ignorable #:object-141))\n (when *print-adt-readably* (write-string \"#.\" #:stream-142))\n nil\n (prin1 'nil #:stream-142)\n nil)))\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\")))\n (declaim (sb-ext:freeze-type nil))\n (defmethod make-load-form ((#:object-141 nil) &optional #:environment-144)\n (make-load-form-saving-slots #:object-141 :slot-names nil :environment\n #:environment-144))\n (define-constant nil (%nil)\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\"))\n (fmakunbound '%nil))\n 'nil)","status":"verified"}
{"macro_name":"DEFDATA","library":"cl-algebraic-data-type","call_form":"(defdata nil\n (progn))","expanded":"(eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (nil (:constructor nil) (:copier nil) (:predicate nil)\n (:include algebraic-data-type)))\n (progn\n (eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (progn\n (:include nil)\n (:constructor %progn)\n (:copier nil)\n (:predicate nil)\n (:print-function\n (lambda (#:object-145 #:stream-146 #:depth-147)\n (declare (ignore #:depth-147)\n (ignorable #:object-145))\n (when *print-adt-readably* (write-string \"#.\" #:stream-146))\n nil\n (prin1 'progn #:stream-146)\n nil)))\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\")))\n (declaim (sb-ext:freeze-type progn))\n (defmethod make-load-form ((#:object-145 progn) &optional #:environment-148)\n (make-load-form-saving-slots #:object-145 :slot-names nil :environment\n #:environment-148))\n (define-constant progn (%progn)\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\"))\n (fmakunbound '%progn))\n 'nil)","status":"verified"}
{"macro_name":"DEFDATA","library":"cl-algebraic-data-type","call_form":"(defdata nil\n :key\n nil)","expanded":"(eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (nil (:constructor nil) (:copier nil) (:predicate nil)\n (:include algebraic-data-type)))\n (progn\n (eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (:key (:include nil) (:constructor %key) (:copier nil)\n (:predicate nil)\n (:print-function\n (lambda (#:object-149 #:stream-150 #:depth-151)\n (declare (ignore #:depth-151)\n (ignorable #:object-149))\n (when *print-adt-readably* (write-string \"#.\" #:stream-150))\n nil\n (prin1 ':key #:stream-150)\n nil)))\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\")))\n (declaim (sb-ext:freeze-type :key))\n (defmethod make-load-form ((#:object-149 :key) &optional #:environment-152)\n (make-load-form-saving-slots #:object-149 :slot-names nil :environment\n #:environment-152))\n (define-constant :key (%key)\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\"))\n (fmakunbound '%key))\n (progn\n (eval-when (:compile-toplevel :load-toplevel :execute)\n (defstruct\n (nil (:include nil) (:constructor %nil) (:copier nil) (:predicate nil)\n (:print-function\n (lambda (#:object-149 #:stream-150 #:depth-151)\n (declare (ignore #:depth-151)\n (ignorable #:object-149))\n (when *print-adt-readably* (write-string \"#.\" #:stream-150))\n nil\n (prin1 'nil #:stream-150)\n nil)))\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\")))\n (declaim (sb-ext:freeze-type nil))\n (defmethod make-load-form ((#:object-149 nil) &optional #:environment-152)\n (make-load-form-saving-slots #:object-149 :slot-names nil :environment\n #:environment-152))\n (define-constant nil (%nil)\n #A((34) base-char . \"A component of ADT COMMON-LISP:NIL\"))\n (fmakunbound '%nil))\n 'nil)","status":"verified"}
{"macro_name":"DEFDATA","library":"cl-algebraic-data-type","call_form":"(defdata 'lol-gen::some-name)","expanded":"","status":"expansion-error","error":"ADT-NAME must either be a symbol, a singleton list with the ADT name as a symbol, or a list of two elements with the ADT name and :MUTABLE respectively. Given 'LOL-GEN::SOME-NAME."}
{"macro_name":"WITH-DATA","library":"cl-algebraic-data-type","call_form":"(with-data)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO WITH-DATA:\n too few elements in\n ()\n to satisfy lambda list\n ((NAME &REST VARS) OBJ &BODY BODY):\n at least 2 expected, but got 0"}
{"macro_name":"WITH-DATA","library":"cl-algebraic-data-type","call_form":"(with-data nil)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO WITH-DATA:\n too few elements in\n (NIL)\n to satisfy lambda list\n ((NAME &REST VARS) OBJ &BODY BODY):\n at least 2 expected, but got 1"}
{"macro_name":"WITH-DATA","library":"cl-algebraic-data-type","call_form":"(with-data nil\n nil)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO WITH-DATA:\n too few elements in\n ()\n to satisfy lambda list\n (NAME &REST VARS):\n at least 1 expected, but got 0"}
{"macro_name":"WITH-DATA","library":"cl-algebraic-data-type","call_form":"(with-data nil\n (progn))","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO WITH-DATA:\n too few elements in\n ()\n to satisfy lambda list\n (NAME &REST VARS):\n at least 1 expected, but got 0"}
{"macro_name":"WITH-DATA","library":"cl-algebraic-data-type","call_form":"(with-data nil\n :key\n nil)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO WITH-DATA:\n too few elements in\n ()\n to satisfy lambda list\n (NAME &REST VARS):\n at least 1 expected, but got 0"}
{"macro_name":"WITH-DATA","library":"cl-algebraic-data-type","call_form":"(with-data 'lol-gen::some-name)","expanded":"","status":"expansion-error","error":"Error while parsing arguments to DEFMACRO WITH-DATA:\n too few elements in\n ('LOL-GEN::SOME-NAME)\n to satisfy lambda list\n ((NAME &REST VARS) OBJ &BODY BODY):\n at least 2 expected, but got 1"}