add a lot of new stuff
This commit is contained in:
parent
8acfe0e85a
commit
9e3e0ffe39
9 changed files with 792 additions and 71 deletions
20
api/api.php
Normal file
20
api/api.php
Normal 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.";
|
||||
}
|
||||
?>
|
Reference in a new issue