RA Language Commands

Command Description Example
ra::inGet input from userra::in num age;
ra::outPrint outputra::out "Hello " + name;
writeWrite to filewrite file "data.txt" = "Hello file";
readRead from fileread file "data.txt" to myData;
=Assign valuex = 5;
mathScientific math operationmath sin angle to result;
basicBasic arithmeticbasic add sum a b;
ifConditionalif x > 10:
  ra::out "Bigger than 10";
elseElse clauseelse:
  ra::out "10 or less";
forFor loopfor i = 0; i < 5; i = i + 1:
  ra::out i;
whileWhile loopwhile x < 10:
  x = x + 1;
funcDefine functionfunc sayHello:
  ra::out "Hello!";
threadRun in new threadthread myThread runFunction;
asyncAsynchronous runasync doSomething;
newCreate new instancenew MyClass obj;
deleteDelete object/vardelete obj;
encryptEncrypt dataencrypt "text" to secret;
decryptDecrypt datadecrypt secret to text;
socketCreate socketsocket mySock;
connectConnect to serverconnect mySock "127.0.0.1" 8080;
dbDatabase connectdb connect "database.db";
queryRun SQL queryquery "SELECT * FROM users" to result;
soundLoad soundsound "sound.wav" to mySound;
playPlay soundplay mySound;
windowCreate GUI windowwindow "MyApp" 800 600;
drawDraw shapesdraw circle 100 100 50;
processRun external appprocess "notepad.exe";
systemRun system cmdsystem "dir";