File: html.ml

package info (click to toggle)
ocamlnet 4.1.9-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,024 kB
  • sloc: ml: 151,939; ansic: 11,071; sh: 2,003; makefile: 1,310
file content (29 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (12)
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
(* Types for the HTML scanner: *)

type token =
    Lcomment
  | Rcomment
  | Mcomment
  | Ldoctype
  | Rdoctype
  | Mdoctype
  | Lelement of string
  | Lelementend of string
  | Relement
  | Cdata of string 
  | Space of int
  | Name of string
  | Is
  | Literal of string
  | Other
  | Eof
;;


(* Types for the HTML parser: *)

type document =
    Element of (string * (string*string)list * document list)
  | Data of string
;;