File: html.ml

package info (click to toggle)
netclient 0.91-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,096 kB
  • ctags: 1,539
  • sloc: ml: 8,808; sh: 527; makefile: 203
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
;;