I plan to introduce variables , iteration construct, and conditional statement in my own Sambal programming language.
Your inputs are welcomed.
Variables:
Which is the best for easy and quick Sambal language?
CODE
LET a = 0
VAR a = 0
SET a = 1
a = 95
DIM a as integer
Iteration construct:
Which is the best for easy and quick Sambal language?
CODE
REPEAT.....UNTIL a = 2
DO .....LOOP UNTIL a =3
WHILE a < 3.....WEND
Conditional statements:
Which is the best for easy and quick Sambal language?
But I think it is rather straight forward.
CODE
IF a = 3 THEN.....
IF a <2 THEN BEGIN.....END
And finally, do you agree I design it in this way:
CODE
INC a
DEC a
a = a + 2
a = a - c
No complex mathematic calculation will be supported. Only one subtraction or one addition of variable.
Do you recommend to use line delimiter such as semicolon? My own vision is that to make the Sambal language code as simple as possible to type and to memorize.
Currently only 4 commands are supported: MSGBOX, WMSGBOX, EMSGBOX, QMSGBOX.
But I plan to add the above to Sambal compiler.
This post has been edited by FlierMate: Apr 24 2021, 01:05 AM