Caveats related to syntaxes β
Issue when doing multiplication β
Currently, sanpasjs
doesn't support *
character to multiply but, you can overcome this issue using mul
keyword.
pascal
program multiply_san(input,output);
var num: integer;
var user_num: integer;
begin
num := 3;
writeln('Enter a number to multiply by 03');
readln(user_num)
num := num * user_num;
num := num mul user_num;
html('Answer is ', num);
end;
Outputting function in next line β
Currently, there is no effect in any function which ends with ln
. To overcome this issue please type "\n"
.
pascal
program nxt_line_san(input,output);
begin
htmln('I wont change the cursor to next line :(');
htmln('I will change the cursor to next line :) \n');
text('I wont change the cursor to next line :(');
textln('I will change the cursor to next line :) \n');
end;
Lack of syntax support β
Currently, some syntax won't be supported π which includes
switch
statementprocedure
with more arguments (single argument supported)function
keyword
etc...