SHARE
TWEET

TLang

a guest Jul 5th, 2011 718 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.         while(($l=trim(fgets(STDIN))))
  3.                 echo Tlang($l)."\n";
  4.  
  5.         function Tlang($c)
  6.         {
  7.                 return ($d=preg_replace_callback('/\^([=#@]) +?(\-?\d+)(?: +?(\-?\d+))?\$/', create_function('$m','return eval(\'return \'.(isset($m[3])?$m[3]:\'\').strtr($m[1],\'=#@\',\'+*-\').$m[2].\';\');'), $c))==$c?$c:Tlang($d);
  8.         }
  9. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top