Appendix A: Keyword Reference
| Keyword | Description |
|---|---|
val / var | Declare a constant / variable. |
def | Defines a function. |
class | Defines a class. |
if / else | Conditional branching. |
while / for | Looping constructs. |
break / continue | Loop control. |
return | Return a value from a function. |
print | Print a value to the console. |
import | Import another REDLINE module. |
pub | Make a function or class public. |
new | Allocate a new object instance. |
this | Reference the current object instance. |
try / catch | Handle runtime errors. |
true / false | Boolean literals. |
Appendix B: Standard Library Quick Reference
- System:
args,len,append,sort,reverse,find,to_string,to_int,to_float - I/O:
print,input - File System:
read_file,write_file,exists,mkdir,remove,list_dir - Time:
time,sleep - Random:
random_int,random_float