The programming language of my dreams

Every programmer at least once in his life dreamed of an ideal programming language. Of course, each programmer has his own ideas about ideality. So I had my dreams, until I finally decided to implement my dream programming language on my own. What came of this to judge you.



I started with the names of variables and functions. Implemented verbose identifiers with support for all available human languages.



 1 = 1;   2 = 2;  =  1 +   2; print ; print; function    () { print " "; print; }    ();
      
      





Not bad, huh? But clearly does not reach the dream. Therefore, we had to add synonyms.



 synonym "", "="; synonym "", "="; synonym "", "+"; synonym "", "print"; synonym "", "function";  1  1;   2  2;    1    2;  ; ;     () {  " "; ; }    ();
      
      





The text of the program has been transformed to ordinary human language. This feature of the language allows you to start programming a person without special education. You can escape from the study of the syntactic structures of the language, and focus on the study of programming algorithms. Even the most complex algorithm outlined in the ordinary language becomes much clearer. And for more advanced users, the language provides the ability to work with arrays of any dimension and objects.



This simple program looks simply amazing. Is not it?



 // //       //   = 57;   = 1332; while (  <> 0 and   <> 0) { if (  >  )   =   %  ; else   =   %  ; } print(  +  );
      
      





In the process of implementing the language, it turned out that the namespaces of variables and functions do not intersect. This allows you to have a variable and function with the same name.



 function () {}  = "";
      
      





Function descriptions can be placed anywhere. Which of them will be actively decided during the execution of the program.



  = ""; if( = "") { function summa() { return 10; } } else { function summa() { return 20; } } print summa(); print;
      
      





Between words in the names there may be a different number of spaces, tabs or line feeds.



      = " "; print     ; print;
      
      





The programming language has many different built-in functions. At least it can be a good replacement for BASIC. Currently, there is only an online version of the language. The language is written in PHP.



You can find all the details on the website Programming language .



All Articles