>> if (cmp(a,">",10) becomes if (>(a, 10)
<<
I think I am too used to thinking infix. Besides I might later "evolve" it to a more conventional approach, and don't want to shuffle the ordering as much.
I am not trying to fully optimize the syntax here (just yet), only make the langage simple to compile/parse. Those issues don't really affect the key elements of what I am trying to demo.
>> Also, I assume from your example you are treating linefeeds as commas in a parameter list <<
No, parameters would be based on spaces. If there are embedded spaces, then quotes are required. It would roughly follow LISP conventions.
>> And how would you do a if/else? Require a 'block' function in your if function? if(>(a, 10), block( ... code here ... ), block( ... code here ... )), <<
I am working on that issue. I have a different approach in mind, but have to check it more carefully. It sort of merges IF's and CASE statements.
>> PS: Turn // comment into rem("comment") <<
Too much typing. I will just let a preprocessor remove/ignore anything after //.