Posts

Showing posts from June, 2024

Tangerine Quantum AI Language

  Changing syntax of programming languages 1. Reversed assignment operator  a + b -> a Allows assignment to flow from left to right like we write in more natural direction 2. Tagging keywords  {while} ... {/while} This allows to easy introduce new keywords into language and to easy find mistakes in control flow of programs 3. Reversed object notation  b@agi instead of agi.b 4. Reversed function declaration  {fun} int a, b -> f int   and  call  a, b -> f   These two changes allow to combine input and output in one line which is also more natural 5. New for loop syntax {for} 0 -> i++ < n Pseudo Code Examples Classes and Functions {module} Euclid         ! comment     {fun} int a, int b -> euclid int  ! function with type int     {while} b!= 0         {if} a > b             a -b ->...