Keywords

Reserved words in the Quartz programming language.

Declaration Keywords

KeywordDescription
letDeclare immutable variable
varDeclare mutable variable
fnDeclare function
classDeclare class
extendsClass inheritance

Control Flow Keywords

KeywordDescription
ifConditional execution
elseAlternative branch
whileWhile loop
forFor loop
inIteration keyword
breakExit loop
continueSkip to next iteration
returnReturn from function

Exception Keywords

KeywordDescription
tryStart try block
catchHandle exception
finallyAlways execute block
throwThrow exception

Module Keywords

KeywordDescription
importImport module
asModule alias

Other Keywords

KeywordDescription
newCreate instance
thisCurrent instance reference
trueBoolean true
falseBoolean false
nullNull value

Type Keywords

KeywordDescription
intInteger type
doubleFloating-point type
stringString type
boolBoolean type
voidNo return type