Jump to content

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

From The Invariance Itself
Revision as of 15:43, 27 September 2026 by BFP Rauch (talk | contribs) (TPC-PY source diff_lint.php (-), SHA-256 cb54acc90ef7bead; conformed TPS 0.3.0; PROPOSED, not declared (CO-8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
<?php
declare(strict_types=1);
require __DIR__ . '/../tpc_php/tpc_lint.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_lint_run_case($c->fn, $c->args); }
echo json_encode($out, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE | JSON_INVALID_UTF8_SUBSTITUTE);