Posts

Showing posts from March, 2025

Lite Assembly

New Syntax Language Rendering assignment a + b -> a in new Syntax: a, r1 ldi b, r2 ldi r1, r2, r1 addi r1, a sti It has following differences: reversed notation small letters It is easier to read because logic flows from left to right like we write

Stream - Syntax-Oriented 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 function declaration  {fun} int a, b -> f int  and  call   a, b -> f   These changes allow to combine input and output in one line which is also more natural Functions {module} Euclidean         ! comment      {fun} int a, int b -> euclid int  ! function with type int                                  {while} b!= 0         {if} a > b      ...