The Principia Machina/TPC-PY/diff probe.php: Difference between revisions
Appearance
TPC-PY source diff_probe.php (-), SHA-256 ef3e71ee82be0142; conformed TPS 0.3.0; PROPOSED, not declared (CO-8) |
m 1 revision imported |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<?php | <?php | ||
declare(strict_types=1); | declare(strict_types=1); | ||
require __DIR__ . '/../tpc_php/ | // increment 12: the tree's modules through the runner (CP1's EQUATION type reads tpc_form's parse_form) | ||
define("TPC_RUNNER_NO_MAIN", true); | |||
require __DIR__ . '/../tpc_php/run_corpus.php'; | |||
$cases = json_decode(file_get_contents($argv[1] ?? __DIR__ . '/diff_cases.json'), false, 512, JSON_THROW_ON_ERROR); | $cases = json_decode(file_get_contents($argv[1] ?? __DIR__ . '/diff_cases.json'), false, 512, JSON_THROW_ON_ERROR); | ||
$out = []; | $out = []; | ||
Latest revision as of 02:11, 30 September 2026
<?php
declare(strict_types=1);
// increment 12: the tree's modules through the runner (CP1's EQUATION type reads tpc_form's parse_form)
define("TPC_RUNNER_NO_MAIN", true);
require __DIR__ . '/../tpc_php/run_corpus.php';
$cases = json_decode(file_get_contents($argv[1] ?? __DIR__ . '/diff_cases.json'), false, 512, JSON_THROW_ON_ERROR);
$out = [];
foreach ($cases as $c) { $out[] = tpc_probe_run_case($c->fn, $c->args); }
echo json_encode($out, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);