| Command |
Description |
Example |
| ra::in | Get input from user | ra::in num age; |
| ra::out | Print output | ra::out "Hello " + name; |
| write | Write to file | write file "data.txt" = "Hello file"; |
| read | Read from file | read file "data.txt" to myData; |
| = | Assign value | x = 5; |
| math | Scientific math operation | math sin angle to result; |
| basic | Basic arithmetic | basic add sum a b; |
| if | Conditional | if x > 10: ra::out "Bigger than 10"; |
| else | Else clause | else: ra::out "10 or less"; |
| for | For loop | for i = 0; i < 5; i = i + 1: ra::out i; |
| while | While loop | while x < 10: x = x + 1; |
| func | Define function | func sayHello: ra::out "Hello!"; |
| thread | Run in new thread | thread myThread runFunction; |
| async | Asynchronous run | async doSomething; |
| new | Create new instance | new MyClass obj; |
| delete | Delete object/var | delete obj; |
| encrypt | Encrypt data | encrypt "text" to secret; |
| decrypt | Decrypt data | decrypt secret to text; |
| socket | Create socket | socket mySock; |
| connect | Connect to server | connect mySock "127.0.0.1" 8080; |
| db | Database connect | db connect "database.db"; |
| query | Run SQL query | query "SELECT * FROM users" to result; |
| sound | Load sound | sound "sound.wav" to mySound; |
| play | Play sound | play mySound; |
| window | Create GUI window | window "MyApp" 800 600; |
| draw | Draw shapes | draw circle 100 100 50; |
| process | Run external app | process "notepad.exe"; |
| system | Run system cmd | system "dir"; |