Protonium Language

Protonium

Programming Language

Indented and Interpreted like Python

No ":" after control flow statement

It also has different syntax for assignment operator

a - b -> a instead of a = a - b

.pro extension


module euclid

    pro a b -> euclid

          while b!=0

                 if a>b

                      a - b -> a

                 else

                      b - a -> b

          return a


    pro main

           in -> a b -> euclid -> out


           // combined input output
           // a b -> euclid - function call & declaration

 

I'm trying here to Unify syntax of

function declaration & call,

input & output and

assignment operator

 

Because this new syntax has

more natural flow of elements

from left to right, like we write

 

Comments

Popular posts from this blog

Hybrid Markup Language

Stream - Syntax-Oriented Language

iTeraTor Universal Data Language