forked from aantron/markup.ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
markup.opam
47 lines (37 loc) · 1.72 KB
/
markup.opam
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
opam-version: "2.0"
synopsis: "Error-recovering functional HTML5 and XML parsers and writers"
license: "MIT"
homepage: "https://github.com/aantron/markup.ml"
doc: "http://aantron.github.io/markup.ml"
bug-reports: "https://github.com/aantron/markup.ml/issues"
authors: "Anton Bachin <[email protected]>"
maintainer: "Anton Bachin <[email protected]>"
dev-repo: "git+https://github.com/aantron/markup.ml.git"
depends: [
"dune" {>= "2.7.0"}
"ocaml" {>= "4.03.0"}
"uchar"
"uutf" {>= "1.0.0"}
"bisect_ppx" {dev & >= "2.5.0"}
"ounit2" {dev}
]
# Markup.ml implicitly requires OCaml 4.02.3, as this is a contraint of Dune.
build: [
["dune" "build" "-p" name "-j" jobs]
]
description: """
Markup.ml provides an HTML parser and an XML parser. The parsers are wrapped in
a simple interface: they are functions that transform byte streams to parsing
signal streams. Streams can be manipulated in various ways, such as processing
by fold, filter, and map, assembly into DOM tree structures, or serialization
back to HTML or XML.
Both parsers are based on their respective standards. The HTML parser, in
particular, is based on the state machines defined in HTML5.
The parsers are error-recovering by default, and accept fragments. This makes it
very easy to get a best-effort parse of some input. The parsers can, however, be
easily configured to be strict, and to accept only full documents.
Apart from this, the parsers are streaming (do not build up a document in
memory), non-blocking (can be used with threading libraries), lazy (do not
consume input unless the signal stream is being read), and process the input in
a single pass. They automatically detect the character encoding of the input
stream, and convert everything to UTF-8."""