2023-10-19 17:49:54 +02:00
|
|
|
;; tinmop: a multiprotocol client
|
2023-10-19 17:51:11 +02:00
|
|
|
;; Copyright © cage
|
2022-08-21 11:39:40 +02:00
|
|
|
|
|
|
|
;; This program is free software: you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(defpackage gopher-parser
|
|
|
|
(:use
|
|
|
|
:cl
|
|
|
|
:cl-ppcre
|
|
|
|
:esrap
|
|
|
|
:config
|
|
|
|
:constants
|
|
|
|
:text-utils
|
|
|
|
:misc)
|
|
|
|
(:local-nicknames (:a :alexandria))
|
|
|
|
(:export
|
2022-08-25 14:20:06 +02:00
|
|
|
:+gopher-scheme+
|
2022-08-21 11:39:40 +02:00
|
|
|
:+line-type-file+
|
|
|
|
:+line-type-dir+
|
|
|
|
:+line-type-cso+
|
|
|
|
:+line-type-error+
|
|
|
|
:+line-type-mac-hex-file+
|
|
|
|
:+line-type-dos-archive-file+
|
|
|
|
:+line-type-uuencoded-file+
|
|
|
|
:+line-type-index-search+
|
|
|
|
:+line-type-telnet-session+
|
|
|
|
:+line-type-binary-file+
|
2022-08-25 14:20:06 +02:00
|
|
|
:+line-type-gif-image-file+
|
|
|
|
:+line-type-image-file+
|
|
|
|
:+line-type-info+
|
|
|
|
:+line-type-uri+
|
2022-08-28 13:22:08 +02:00
|
|
|
:line-type-id
|
|
|
|
:selector
|
|
|
|
:username
|
|
|
|
:port
|
|
|
|
:host
|
2022-08-21 11:39:40 +02:00
|
|
|
:line-file
|
|
|
|
:line-dir
|
|
|
|
:line-cso
|
|
|
|
:line-error
|
|
|
|
:line-mac-hex-file
|
|
|
|
:line-dos-archive-file
|
2022-08-28 13:22:08 +02:00
|
|
|
:line-uuencoded-file
|
2022-08-21 11:39:40 +02:00
|
|
|
:line-index-search
|
|
|
|
:line-telnet-session
|
|
|
|
:line-binary-file
|
|
|
|
:line-redundant-server
|
|
|
|
:line-tn3270-session
|
|
|
|
:line-gif-file
|
|
|
|
:line-image-file
|
2022-08-28 13:22:08 +02:00
|
|
|
:line-info
|
2022-08-25 14:20:06 +02:00
|
|
|
:line-uri
|
2022-08-28 13:22:08 +02:00
|
|
|
:line-unknown
|
2024-02-19 20:49:14 +01:00
|
|
|
:line-empty
|
2022-08-28 13:22:08 +02:00
|
|
|
:line-type-file-p
|
|
|
|
:line-type-info-p
|
|
|
|
:line-type-dir-p
|
|
|
|
:line-type-cso-p
|
|
|
|
:line-type-error-p
|
2024-02-19 20:49:14 +01:00
|
|
|
:line-type-empty-p
|
2022-08-28 13:22:08 +02:00
|
|
|
:line-type-mac-hex-file-p
|
|
|
|
:line-type-dos-archive-file-p
|
|
|
|
:line-type-uuencoded-file-p
|
|
|
|
:line-type-index-search-p
|
|
|
|
:line-type-telnet-session-p
|
|
|
|
:line-type-binary-file-p
|
|
|
|
:line-type-redundant-server-p
|
|
|
|
:line-type-tn3270-session-p
|
|
|
|
:line-type-gif-file-p
|
|
|
|
:line-type-image-file-p
|
|
|
|
:line-type-image-uri-p
|
|
|
|
:line-unknown-p
|
2022-08-25 14:20:06 +02:00
|
|
|
:parse-menu
|
2022-08-28 13:22:08 +02:00
|
|
|
:parse-text-file
|
2022-08-25 14:20:06 +02:00
|
|
|
:parse-iri))
|
2022-08-21 11:39:40 +02:00
|
|
|
|
|
|
|
(defpackage gopher-client
|
|
|
|
(:use
|
|
|
|
:cl
|
|
|
|
:cl-ppcre
|
|
|
|
:config
|
|
|
|
:constants
|
|
|
|
:text-utils
|
|
|
|
:misc
|
2022-08-25 14:20:06 +02:00
|
|
|
:gopher-parser)
|
|
|
|
(:local-nicknames (:a :alexandria)
|
|
|
|
(:parser :gopher-parser))
|
|
|
|
(:export
|
2022-08-28 13:22:08 +02:00
|
|
|
:make-collect-fn
|
2022-08-25 14:20:06 +02:00
|
|
|
:request
|
|
|
|
:request-from-iri))
|