Print the JSON encoding of a vl-distitem-p to ps.
(vl-jp-distitem x &key (ps 'ps)) → ps
Function:
(defun vl-jp-distitem-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-distitem-p x))) (let ((__function__ 'vl-jp-distitem)) (declare (ignorable __function__)) (vl-ps-seq (vl-print "{\"tag\": ") (jp-sym ':vl-distitem) (vl-print ", ") (vl-print-str "\"left\": ") (vl-jp-expr (vl-distitem->left x)) (vl-println? ", ") (vl-print-str "\"right\": ") (vl-jp-maybe-expr (vl-distitem->right x)) (vl-println? ", ") (vl-print-str "\"type\": ") (vl-jp-distweighttype (vl-distitem->type x)) (vl-println? ", ") (vl-print-str "\"weight\": ") (vl-jp-expr (vl-distitem->weight x)) (vl-println? "}"))))