philips-cnc6600-interpreter/bin/run_program

14 lines
276 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env php7.4
<?php
require_once __DIR__ . '/../vendor/autoload.php';
if (!isset($argv[1])) {
print("Usage: bin/run_program <program number>\n");
exit(1);
}
$CNC6600 = require_once __DIR__ . '/bootstrap.php';
$CNC6600->loadProgram($argv[1]);
$CNC6600->execute();