Mercurial > core / lisp/lib/dat/pkg.lisp
changeset 604: |
74a55d5decce |
parent: |
5bd0eb9fa1fa
|
child: |
35a579313b80 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sat, 17 Aug 2024 23:42:08 -0400 |
permissions: |
-rw-r--r-- |
description: |
emacs org libraries and upgrades |
1 ;;; dat/pkg.lisp --- Data 6 (:export :serialize :deserialize 7 :serializer-error :deserializer-error 8 :serde :serde-error :dat-error)) 12 (:use :cl :sb-mop :std) 13 (:import-from :uiop :read-file-forms :slurp-stream-forms :with-output-file) 14 ;; TODO: hot-patch readtables into sxp classes/parsers 15 (:import-from :std/named-readtables :defreadtable :in-readtable) 18 :form :formp :sxp-error :sxp-syntax-error :reader :writer :fmt 21 :sxpp :build-ast :load-ast :load-ast* 23 :define-macro :define-fmt :read-sxp-file :write-sxp-file 24 :read-sxp-string :write-sxp-string :read-sxp-stream :write-sxp-stream 25 :make-sxp :sxp :formp :form 27 :wrap-object :unwrap-object)) 30 (:use :cl :std :dat/proto :obj/graph) 32 :read-dot-file :write-dot-file 33 :read-dot-stream :write-dot-stream 37 (:use :cl :std :dat/proto :obj/query) 44 :read-csv-file-and-sort 49 (:use :cl :std :dat/proto :obj/time) 58 #:toml-redefine-table-error 59 #:toml-redefine-property-error 60 #:toml-modify-inline-table-error 61 #:toml-dotted-key-redefine-table-error 62 #:toml-dotted-key-open-table-array-error)) 65 (:use :cl :std :dat/proto :dat/csv) 67 :arff :arff-relation :arff-attributes :arff-data :arff-path 68 :parse-arff :parse-arff-string :parse-arff-stream 69 :remove-attribute-by-name)) 72 (:use :cl :std :dat/proto) 74 :*allow-json-trailing-commas* 75 :json-trailing-commas-p 79 #:json-enable-reader-macro 85 (defpackage :dat/base64 86 (:use :cl :std :dat/proto) 87 (:export #:base64-stream-to-integer 88 #:base64-stream-to-string 89 #:base64-stream-to-stream 90 #:base64-stream-to-usb8-array 91 #:base64-string-to-integer 92 #:base64-string-to-string 93 #:base64-string-to-stream 94 #:base64-string-to-usb8-array 95 #:string-to-base64-string 96 #:string-to-base64-stream 97 #:usb8-array-to-base64-string 98 #:usb8-array-to-base64-stream 99 #:stream-to-base64-string 100 #:stream-to-base64-stream 101 #:integer-to-base64-string 102 #:integer-to-base64-stream 105 #:bad-base64-character 106 #:incomplete-base64-data 107 ;; For creating custom encode/decode tables. 110 #:+uri-decode-table+)) 112 (defpackage :dat/html 113 (:use :cl :std :dat/proto) 114 (:import-from :sb-ext :defglobal) 117 :parse-html5-fragment 141 :node-previous-sibling 143 :element-map-attributes 144 :element-map-attributes* 145 :element-map-children)) 148 (:use :cl :std :dat/proto :log) 149 (:shadow :read-char :unread-char) 160 :xml-node ; needed to support use in typep 161 ;; processing instruction objects 168 :make-xmlrep :xmlrep-add-child! 169 :xmlrep-tag :xmlrep-tagmatch 170 :xmlrep-attribs :xmlrep-children 171 :xmlrep-string-child :xmlrep-integer-child 172 :xmlrep-find-child-tags :xmlrep-find-child-tag 173 :xmlrep-attrib-value :xmlrep-boolean-attrib-value 174 ;; tree searching from Daniel Eliason 178 (defpackage :dat/handlebars 179 (:use :cl :std :dat/proto :dat/html) 182 (defpackage :dat/mime 183 (:use :cl :std :dat/proto :dat/xml) 184 (:export :*mime-database* 185 :load-mime-info :update-mime-database 186 :mime-magic :mime-magic-offset :mime-magic-type :mime-magic-value 187 :mime-type :mime-type-name :mime-type-superclasses :mime-type-glob 188 :mime-type-glob :mime-type-magic 189 :mime :get-mime :get-mime*)) 191 (defpackage :dat/bencode 192 (:use :cl :std :dat/proto :sb-gray) 196 :*bencode-binary-key-p*)) 198 (defpackage :dat/midi 200 (:use :cl :std :dat/proto) 201 (:export #:read-midi-file #:write-midi-file 203 #:midifile-format #:midifile-tracks #:midifile-division 204 #:message #:note-off-message #:note-on-message #:tempo-message 205 #:program-change-message #:pitch-bend-message 206 #:key-signature-message #:time-signature-message 207 #:smpte-offset-message 208 #:sequence/track-name-message 209 #:message-channel #:message-key #:message-time 210 #:message-velocity #:message-numerator #:message-denominator 211 #:message-sf #:message-mi #:message-tempo #:message-program 213 #:header #:header-type 214 #:unknown-event #:status #:data-byte #:dd #:bb #:cc #:nn)) 216 (defpackage :dat/qrcode 218 (:use :cl :std :dat/proto) 221 ;; QR code representation 222 ;; this should be enough to write another backend for QR symbol 231 (:use :cl :std :dat/proto) 235 (:use :cl :std :dat/proto #+png :png) 239 (:use :cl :std :dat/proto) 242 (defpackage :dat/parquet 243 (:use :cl :std :obj/id :dat/proto :dat/json) 247 :parquet-struct-object 254 (:use-reexport :dat/proto :dat/csv :dat/arff 255 :dat/toml :dat/json :dat/sxp :dat/xml 256 :dat/bencode :dat/qrcode))