add a lot of new stuff

This commit is contained in:
fyr77 2020-12-07 15:57:57 +01:00
parent 8acfe0e85a
commit 9e3e0ffe39
9 changed files with 792 additions and 71 deletions

20
api/api.php Normal file
View file

@ -0,0 +1,20 @@
<?php
include "brainfuck.php";
include "util.php";
$func = $_POST['func'];
$instr = $_POST['instr'];
if ($func == 'tobf')
{
echo fuck_text($instr);
}
elseif ($func == 'interpret')
{
echo brainfuck($instr);
}
else
{
echo "function error.";
}
?>