跳到內容

BlitzMax/語言/識別符號

來自維客書,開放世界的開放書籍

識別符號用於為常量、變數、函式和使用者定義型別命名。

識別符號以字母或下劃線開頭,後跟任意組合的字母、數字或下劃線。例如,以下都是有效的識別符號

player1_up
your_name
_hello_world_

BlitzMax 中的識別符號不區分大小寫。這意味著識別符號 helloHelloHELLO 均被視為相同的識別符號。

以下識別符號已預留給 BlitzMax 語言使用,不能作為通用識別符號

Strict Module ModuleInfo Framework
End Return Continue Exit Assert
Public Private
True False Pi Null Self Super
Byte Short Int Long Float Double Object String
Var Ptr VarPtr Chr Len Asc SizeOf Sgn Abs Min Max Mod
Shl Shr Sar Not And Or
New Release Delete
Incbin IncbinPtr IncbinLen
Include Import Extern EndExtern
Function EndFunction
Type EndType Extends
Method EndMethod
Local Global Const Field
Abstract Final
Rem EndRem
If Then Else ElseIf EndIf
For To Next Step EachIn
While Wend
Repeat Until Forever
Select Case Default EndSelect
Try Catch EndTry Throw
Goto DefData ReadData RestoreData
Alias
華夏公益教科書