| 1 |
exception Unknown_format |
| 2 |
|
| 3 |
type lines = |
| 4 |
| Single of int |
| 5 |
| Range of int * int |
| 6 |
|
| 7 |
type code = |
| 8 |
{ code : int |
| 9 |
; name : string |
| 10 |
} |
| 11 |
|
| 12 |
type source = |
| 13 |
| Code of code |
| 14 |
| Alert of string |
| 15 |
|
| 16 |
type severity = |
| 17 |
| Error of source option |
| 18 |
| Warning of code |
| 19 |
| Alert of |
| 20 |
{ name : string |
| 21 |
; source : string |
| 22 |
} |
| 23 |
|
| 24 |
type loc = |
| 25 |
{ chars : (int * int) option |
| 26 |
; lines : lines |
| 27 |
; path : string |
| 28 |
} |
| 29 |
|
| 30 |
type line = |
| 31 |
{ indent : int |
| 32 |
; contents : string |
| 33 |
} |
| 34 |
|
| 35 |
type token = |
| 36 |
| Loc of |
| 37 |
{ indent : int |
| 38 |
; loc : loc |
| 39 |
; message : string |
| 40 |
} |
| 41 |
| Line of line |
| 42 |
| Eof |
| 43 |
|
| 44 |
val severity : Lexing.lexbuf -> (severity * string) option |
| 45 |
val skip_excerpt_head : Lexing.lexbuf -> [ `Stop | `Continue ] |
| 46 |
val skip_excerpt_tail : Lexing.lexbuf -> [ `Stop | `Continue ] |
| 47 |
val token : Lexing.lexbuf -> token |