1 ;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: CL-USER; -*-
2 ;;; ---------------------------------------------------------------------------
3 ;;; Title: Package definitions for the html parser packages
4 ;;; Author: Gilbert Baumann <gilbert@base-engineering.com>
5 ;;; License: LGPL (See file COPYING for details).
6 ;;; ---------------------------------------------------------------------------
7 ;;; (c) copyright 2002 by Gilbert Baumann
9 ;;; Permission is hereby granted, free of charge, to any person obtaining
10 ;;; a copy of this software and associated documentation files (the
11 ;;; "Software"), to deal in the Software without restriction, including
12 ;;; without limitation the rights to use, copy, modify, merge, publish,
13 ;;; distribute, sublicense, and/or sell copies of the Software, and to
14 ;;; permit persons to whom the Software is furnished to do so, subject to
15 ;;; the following conditions:
17 ;;; The above copyright notice and this permission notice shall be
18 ;;; included in all copies or substantial portions of the Software.
20 ;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 ;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 ;;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 ;;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 ;;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 ;;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 ;;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 (defpackage :html-glisp
42 "G/READ-BYTE-SEQUENCE"
44 "G/READ-CHAR-SEQUENCE"
50 "G/WRITE-BYTE-SEQUENCE"
57 "USE-BYTE-FOR-CHAR-STREAM-FLAVOUR"
58 "USE-CHAR-FOR-BYTE-STREAM-FLAVOUR"
62 "CL-BYTE-STREAM->GSTREAM"
63 "CL-CHAR-STREAM->GSTREAM"
65 "MAYBE-PARSE-INTEGER"))
67 (defpackage :closure-mime-types
68 (:use
:cl
:html-glisp
;; white-space-p
70 (:export
#:parse-mime-content-type
;### yet to be defined
71 #:find-mime-type-from-extension
75 #:mime-type-extensions
))
78 (:use
:cl
:html-glisp
:runes
)
84 #:*OPTIONS
/PARSER-SILENT-P
*
105 (defpackage :closure-html
109 (:export
#:*html-dtd
*
112 #:make-octet-vector-sink
113 #:make-octet-stream-sink
115 #+rune-is-character
#:make-character-stream-sink
116 #-rune-is-character
#:make-string-sink
/utf8
117 #-rune-is-character
#:make-character-stream-sink
/utf8
118 #+rune-is-character
#:make-string-sink
141 "This package exports functions for HTML parsing and serialization.
143 In addition, two simple in-memory data structures are included: LHTML, a
144 lisp-list model. And PT, a simple structure instance model used by
147 @begin[Parsing]{section}
150 @begin[Serialization sinks]{section}
151 @aboutfun{make-octet-vector-sink}
152 @aboutfun{make-octet-stream-sink}
153 @aboutfun{make-rod-sink}
154 @aboutfun{make-character-stream-sink}
155 @aboutfun{make-string-sink}
157 @begin[Convenience serialization API]{section}
158 @aboutmacro{with-html-output}
159 @aboutmacro{with-element}
160 @aboutmacro{with-output-sink}
165 @begin[LHTML model]{section}
166 @aboutfun{make-lhtml-builder}
167 @aboutfun{serialize-lhtml}
169 @begin[PT model]{section}
170 @aboutfun{make-pt-builder}
171 @aboutfun{serialize-pt}
173 @aboutfun{pt-children}