Comparison of Scriptol and PHP code

The code of the Scriptol language is intuitive and simple. Instead, the PHP code is inherited from ancient languages such as C and the language of command line of UNIX, Bash, designed to limit the consumption of resources and not to simplify the task of programmers

Examples of codes

The scriptol code:

text x
input "Y/N?", x

if x.lower()
= "y"
   print "yes"
= "n"
  print "no"
else
  print "What?"
/if

The PHP generated code:

<?php
echo "Y/N?";
$fp=fopen("php://stdin","r");
$x=rtrim(fgets($fp,65536));
fclose($fp);

$_I1=strtolower($x);
if($_I1==="y")
{
   echo "yes", "\n";
}
else
{
   if($_I1==="n")
   {
      echo "no", "\n";
   }
else
{
   echo "What?", "\n";
}
}

?>

 

www.scriptol.com