mike dupont
sig
9fad63a
raw
history blame
20.9 kB
[
{
"psig_desc": [
"Psig_attribute",
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.text"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" Registering OCaml values with the C runtime.\n\n This module allows OCaml values to be registered with the C runtime\n under a symbolic name, so that C code can later call back registered\n OCaml functions, or raise registered OCaml exceptions.\n",
{
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 16,
"pos_bol": 1079,
"pos_cnum": 1079
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 21,
"pos_bol": 1330,
"pos_cnum": 1332
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 16,
"pos_bol": 1079,
"pos_cnum": 1079
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 21,
"pos_bol": 1330,
"pos_cnum": 1332
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 16,
"pos_bol": 1079,
"pos_cnum": 1079
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 21,
"pos_bol": 1330,
"pos_cnum": 1332
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 16,
"pos_bol": 1079,
"pos_cnum": 1079
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 21,
"pos_bol": 1330,
"pos_cnum": 1332
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 16,
"pos_bol": 1079,
"pos_cnum": 1079
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 21,
"pos_bol": 1330,
"pos_cnum": 1332
},
"loc_ghost": false
}
},
{
"psig_desc": [
"Psig_value",
{
"pval_name": {
"loc2": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1338
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1346
},
"loc_ghost": false
},
"txt2": "register"
},
"pval_type": {
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_constr", "string", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1349
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1355
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1359
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1361
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [ "Ptyp_constr", "unit", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1365
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1369
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1359
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1369
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1349
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1369
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
"pval_prim": [],
"pval_attributes": [
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.doc"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" [Callback.register n v] registers the value [v] under\n the name [n]. C code can later retrieve a handle to [v]\n by calling [caml_named_value(n)]. ",
{
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 24,
"pos_bol": 1370,
"pos_cnum": 1370
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 26,
"pos_bol": 1487,
"pos_cnum": 1526
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 24,
"pos_bol": 1370,
"pos_cnum": 1370
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 26,
"pos_bol": 1487,
"pos_cnum": 1526
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 24,
"pos_bol": 1370,
"pos_cnum": 1370
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 26,
"pos_bol": 1487,
"pos_cnum": 1526
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 24,
"pos_bol": 1370,
"pos_cnum": 1370
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 26,
"pos_bol": 1487,
"pos_cnum": 1526
},
"loc_ghost": false
}
}
],
"pval_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1334
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1369
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1334
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 23,
"pos_bol": 1334,
"pos_cnum": 1369
},
"loc_ghost": false
}
},
{
"psig_desc": [
"Psig_value",
{
"pval_name": {
"loc2": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1532
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1550
},
"loc_ghost": false
},
"txt2": "register_exception"
},
"pval_type": {
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_constr", "string", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1553
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1559
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_constr", "exn", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1563
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1566
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [ "Ptyp_constr", "unit", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1570
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1574
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1563
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1574
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1553
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1574
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
"pval_prim": [],
"pval_attributes": [
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.doc"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" [Callback.register_exception n exn] registers the\n exception contained in the exception value [exn]\n under the name [n]. C code can later retrieve a handle to\n the exception by calling [caml_named_value(n)]. The exception\n value thus obtained is suitable for passing as first argument\n to [raise_constant] or [raise_with_arg]. ",
{
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 29,
"pos_bol": 1575,
"pos_cnum": 1575
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 34,
"pos_bol": 1872,
"pos_cnum": 1918
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 29,
"pos_bol": 1575,
"pos_cnum": 1575
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 34,
"pos_bol": 1872,
"pos_cnum": 1918
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 29,
"pos_bol": 1575,
"pos_cnum": 1575
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 34,
"pos_bol": 1872,
"pos_cnum": 1918
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 29,
"pos_bol": 1575,
"pos_cnum": 1575
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 34,
"pos_bol": 1872,
"pos_cnum": 1918
},
"loc_ghost": false
}
}
],
"pval_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1528
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1574
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1528
},
"loc_end": {
"pos_fname": "./stdlib/callback.mli",
"pos_lnum": 28,
"pos_bol": 1528,
"pos_cnum": 1574
},
"loc_ghost": false
}
}
]