|
1 | | -(*09dd92d029bc5129509dbb9e46c435ff8be4de41 *src/API.ml --cookie elpi_trace="false"*) |
| 1 | +(*02b4f581e688efce20aa37de517a1147f85853f8 *src/API.ml --cookie elpi_trace="false"*) |
2 | 2 | #1 "src/API.ml" |
3 | 3 | module type Runtime = module type of Runtime_trace_off |
4 | 4 | let r = ref ((module Runtime_trace_off) : (module Runtime)) |
@@ -1338,35 +1338,49 @@ module PPX = |
1338 | 1338 | args) |
1339 | 1339 | let show_ty_ast = ED.Conversion.show_ty_ast |
1340 | 1340 | end |
1341 | | - let readback_int ~depth _ c s x = |
1342 | | - BuiltInData.int.Conversion.readback ~depth ((new Conversion.ctx) []) c |
1343 | | - s x |
1344 | | - let readback_float ~depth _ c s x = |
1345 | | - BuiltInData.float.Conversion.readback ~depth ((new Conversion.ctx) []) |
1346 | | - c s x |
1347 | | - let readback_string ~depth _ c s x = |
1348 | | - BuiltInData.string.Conversion.readback ~depth ((new Conversion.ctx) []) |
| 1341 | + let readback_int ~depth h c s x = |
| 1342 | + BuiltInData.int.Conversion.readback ~depth ((new Conversion.ctx) h#raw) |
1349 | 1343 | c s x |
| 1344 | + let readback_float ~depth h c s x = |
| 1345 | + BuiltInData.float.Conversion.readback ~depth |
| 1346 | + ((new Conversion.ctx) h#raw) c s x |
| 1347 | + let readback_string ~depth h c s x = |
| 1348 | + BuiltInData.string.Conversion.readback ~depth |
| 1349 | + ((new Conversion.ctx) h#raw) c s x |
1350 | 1350 | let readback_list = BuiltInData.readback_list |
1351 | | - let readback_loc ~depth _ c s x = |
1352 | | - BuiltInData.loc.Conversion.readback ~depth ((new Conversion.ctx) []) c |
1353 | | - s x |
1354 | | - let readback_nominal ~depth _ c s x = |
| 1351 | + let readback_loc ~depth h c s x = |
| 1352 | + BuiltInData.loc.Conversion.readback ~depth ((new Conversion.ctx) h#raw) |
| 1353 | + c s x |
| 1354 | + let readback_nominal ~depth h c s x = |
1355 | 1355 | BuiltInData.nominal.Conversion.readback ~depth |
1356 | | - ((new Conversion.ctx) []) c s x |
1357 | | - let embed_int ~depth _ c s x = |
1358 | | - BuiltInData.int.Conversion.embed ~depth ((new Conversion.ctx) []) c s x |
1359 | | - let embed_float ~depth _ c s x = |
1360 | | - BuiltInData.float.Conversion.embed ~depth ((new Conversion.ctx) []) c s |
1361 | | - x |
1362 | | - let embed_string ~depth _ c s x = |
1363 | | - BuiltInData.string.Conversion.embed ~depth ((new Conversion.ctx) []) c |
| 1356 | + ((new Conversion.ctx) h#raw) c s x |
| 1357 | + let readback_bool ~depth h c s x = |
| 1358 | + BuiltInData.bool.Conversion.readback ~depth |
| 1359 | + ((new Conversion.ctx) h#raw) c s x |
| 1360 | + let readback_char ~depth h c s x = |
| 1361 | + BuiltInData.char.Conversion.readback ~depth |
| 1362 | + ((new Conversion.ctx) h#raw) c s x |
| 1363 | + let embed_int ~depth h c s x = |
| 1364 | + BuiltInData.int.Conversion.embed ~depth ((new Conversion.ctx) h#raw) c |
1364 | 1365 | s x |
| 1366 | + let embed_float ~depth h c s x = |
| 1367 | + BuiltInData.float.Conversion.embed ~depth ((new Conversion.ctx) h#raw) |
| 1368 | + c s x |
| 1369 | + let embed_string ~depth h c s x = |
| 1370 | + BuiltInData.string.Conversion.embed ~depth ((new Conversion.ctx) h#raw) |
| 1371 | + c s x |
1365 | 1372 | let embed_list = BuiltInData.embed_list |
1366 | | - let embed_loc ~depth _ c s x = |
1367 | | - BuiltInData.loc.Conversion.embed ~depth ((new Conversion.ctx) []) c s x |
1368 | | - let embed_nominal ~depth _ c s x = |
1369 | | - BuiltInData.nominal.Conversion.embed ~depth ((new Conversion.ctx) []) c |
| 1373 | + let embed_loc ~depth h c s x = |
| 1374 | + BuiltInData.loc.Conversion.embed ~depth ((new Conversion.ctx) h#raw) c |
| 1375 | + s x |
| 1376 | + let embed_nominal ~depth h c s x = |
| 1377 | + BuiltInData.nominal.Conversion.embed ~depth |
| 1378 | + ((new Conversion.ctx) h#raw) c s x |
| 1379 | + let embed_bool ~depth h c s x = |
| 1380 | + BuiltInData.bool.Conversion.embed ~depth ((new Conversion.ctx) h#raw) c |
| 1381 | + s x |
| 1382 | + let embed_char ~depth h c s x = |
| 1383 | + BuiltInData.char.Conversion.embed ~depth ((new Conversion.ctx) h#raw) c |
1370 | 1384 | s x |
1371 | 1385 | type context_description = |
1372 | 1386 | | C: ('a, 'k, 'c) Conversion.context -> context_description |
|
0 commit comments