ffcfa412创建于 2025年7月30日历史提交

关键字

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

关键字 关键字 关键字
as abstract break
Bool case catch
class const continue
Rune do else
enum extend for
func false finally
foreign Float16 Float32
Float64 if in
is init import
interface Int8 Int16
Int32 Int64 IntNative
let mut main
macro match Nothing
open operator override
prop public package
private protected quote
redef return spawn
super static struct
synchronized try this
true type throw
This unsafe Unit
UInt8 UInt16 UInt32
UInt64 UIntNative var
VArray where while