Skip to content

SwaziLang Reference: Keywords

SwaziLang uses a set of reserved keywords for its syntax, control flow, modules, classes, and more.
These keywords have special meaning—you cannot use them as variable or function names!


Keywords Table

KeywordMeaning / Use
dataDeclare variable
chapishaPrint/output
andikaWrite/output (alternate)
thabitiConstant modifier
kaziFunction/method definition
tabiaMethod (in object/class)
chaguaSwitch statement
ikiwaSwitch case
kaidaSwitch default
rudishaReturn value
kweliBoolean true
sikweliBoolean false
naLogical AND
niLogical IS
auLogical OR
siLogical NOT
sawaEquality comparison
sisawaNot equal comparison
tumiaImport module
kutokaImport module (from)
ruhusuExport module
muundoClass/struct definition
rithiInheritance
undaCreate instance/object
supaSuperclass constructor call
futaDestructor/destroy instance
kamaIf conditional
vinginevyoElse conditional
jaribuTry/catch block
makosaError/throw
kishaFinally block
kwaFor loop
kilaFor-each loop
katikaIn/within (for-each)
wakatiWhile loop
fanyaDo/while loop or block
simamaBreak out of loop/switch
endeleaContinue loop
nullNull/empty value

Notes

  • Always use keywords as intended—they cannot be redefined or used as variable/function names.
  • Some keywords have alternate meanings depending on context (e.g. kama in control flow, kama in module import).
  • For full details and usage, see the specific documentation sections.

Tip:
Refer to this table whenever you’re unsure if a word is reserved or available for naming!