Jump to content

The Principia Machina/TPC-PY/diff probe.php

From The Invariance Itself
Revision as of 02:10, 30 September 2026 by BFP Rauch (talk | contribs) (TPC-PY source diff_probe.php (-), SHA-256 a3acafab46d178bd; conformed TPS 0.4.0; PROPOSED, not declared (TPC-PY 0.2.0))
<?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);