The Principia Machina/TPC-PY/diff falcon.php: Difference between revisions
Appearance
TPC-PY source diff_falcon.php (-), SHA-256 1fe14472465856f7; conformed TPS 0.3.0; PROPOSED, not declared (CO-8) |
m 1 revision imported |
||
(No difference)
| |||
Latest revision as of 04:32, 28 September 2026
<?php
declare(strict_types=1);
require __DIR__ . '/../tpc_php/tpc_falcon.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_falcon_run_case($c->fn, $c->args); }
echo json_encode($out, JSON_THROW_ON_ERROR);