Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Keywords

trumae edited this page Jan 5, 2018 · 5 revisions
Keyword Description
break exit for loop
continue go do next interaction on for loop
def create function
for for loop, (for (condition) (function)), (for (function) (array (1 2))), (for (declaration) (condition) (increment) (function))
if/else (if (condition) (if true) (optional if false))
import import package
load load file .rum this file point
let create/set variable
map create map
package declare package (package "name")
return stop execution and return to caller
struct create struct
switch/case/default better than if else :D
print (print string)
sprintf (sprintf "format" "string")
lambda lambda function
. Invoke a method on golang value or get a field on struct golang value Ex: (. buf String)

Would you like to propose more keywords? https://github.com/rumlang/rum/issues/60

Clone this wiki locally