关键字

关键字是不能作为标识符使用的特殊字符串,仓颉语言的关键字如下表所示:

关键字关键字关键字
asabstractbreak
Boolcasecatch
classconstcontinue
Runedoelse
enumextendfor
funcfalsefinally
foreignFloat16Float32
Float64ifin
isinitimport
interfaceInt8Int16
Int32Int64IntNative
letmutmain
macromatchNothing
openoperatoroverride
proppublicpackage
privateprotectedquote
redefreturnspawn
superstaticstruct
synchronizedtrythis
truetypethrow
ThisunsafeUnit
UInt8UInt16UInt32
UInt64UIntNativevar
VArraywherewhile