Keywords List

KeywordDescriptionInactive underIs function?
trueboolean true literalno
falseboolean false literalno
letvariable declarationno
constconstant declarationno
globalautomatic global moduleno_functionno
ifif statementno
elseelse block of if statementno
switchmatchingno
doloopingno
while1) while loop
2) condition for do loop
no
untildo loopno
loopinfinite loopno
forfor loopno
in1) containment test
2) part of for loop
no
continuecontinue a loop at the next iterationno
breakbreak out of loop iterationno
returnreturn valueno
throwthrow exceptionno
trytrap exceptionno
catchcatch exceptionno
importimport moduleno_moduleno
exportexport variableno_moduleno
asalias for variable exportno_moduleno
privatemark function privateno_functionno
fn (lower-case f)function definitionno_functionno
Fn (capital F)create a function pointeryes
callcall a function pointeryes
currycurry a function pointeryes
is_def_fnis function defined?no_functionyes
is_def_varis variable defined?yes
thisreference to base object for method callno_functionno
type_ofget type name of valueyes
printprint valueyes
debugprint value in debug formatyes
evalevaluate scriptyes

Reserved Keywords

KeywordPotential usage
varvariable declaration
staticvariable declaration
beginblock scope
endblock scope
sharedshare value
eachlooping
thencontrol flow
gotocontrol flow
exitcontrol flow
unlesscontrol flow
matchmatching
casematching
publicfunction/field access
protectedfunction/field access
newconstructor
useimport namespace
withscope
modulemodule
packagepackage
superbase class/module
threadthreading
spawnthreading
gothreading
awaitasync
asyncasync
syncasync
yieldasync
defaultspecial value
voidspecial value
nullspecial value
nilspecial value