forked from rotatef/cl-html5-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
html5-parser.asd
89 lines (86 loc) · 3.82 KB
/
html5-parser.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2017 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bjørlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Lesser General Public License as published
;;;; by the Free Software Foundation, either version 3 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This library 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 library. If not, see <http://www.gnu.org/licenses/>.
(defsystem "html5-parser"
:name "html5-parser"
:description "A HTML5 parser for Common Lisp"
:licence "GNU Lesser General Public License"
:author "Thomas Bakketun <thomas@bakketun.pro"
:in-order-to ((test-op (test-op "html5-parser/tests")))
:serial t
:components (
(:module "src/unicode"
:serial t
:components (
(:file "code-point")
))
(:module "src/simple-tree"
:serial t
:components (
(:file "package")
(:file "simple-tree")
))
(:module "src/infra-standard"
:serial t
:components (
(:file "package")
(:file "infra")
))
(:module "src/html5-parser"
:serial t
:components (
(:file "13-2-5-x-tokenization-state-package")
(:file "13-2-0-parsing-html-documents")
(:file "unicode-constants")
(:file "13-2-2-parse-errors")
(:file "13-2-4-parse-state")
(:file "13-5-named-character-references-table")
(:file "13-5-named-character-references")
(:file "13-2-5-tokenization")
(:file "13-2-5-x-tokenization-state")
(:file "13-2-6-0-tree-construction")
(:file "13-2-6-4-the-rules-for-parsing-tokens-in-html-content")
(:file "html5-parser")
))
))
(defsystem "html5-parser/tests"
:depends-on (
"html5-parser"
"json-streams"
"split-sequence"
"fiveam"
"cl-ppcre"
)
:perform (test-op (o c) (symbol-call :html5-parser/tests :run-html5-parser-tests))
:components ((:module "tests"
:serial t
:components (
(:file "packages")
(:file "run-tests")
;;(:file "test-inputstream")
(:file "test-tree-builder")
;;(:file "test-parser")
(:module "html5lib"
:serial t
:components (
(:file "support")
(:file "tokenizer-tests")
(:file "tree-construction-tests")
))
))))