BlitzMax

BlitzMax

  • Downloads
  • Docs
  • API
  • Resources
  • About

›Language

Setup

  • Getting Started
  • Win32
  • Linux
  • macOS
  • Android
  • iOS
  • Raspberry Pi
  • NX (Switch Homebrew)
  • Custom Settings

Tutorials

  • Beginners Guide
  • OOP Tutorial
  • Network Programming
  • TCP Socket Programming

Language

  • Arrays
  • Basic Compatibility
  • Collections
  • Comments
  • Conditional Compiling
  • Constants
  • Data Types
  • Debugging
  • Enums
  • Exceptions
  • Expressions
  • Functions
  • Identifiers
  • Literals
  • Modules
  • Objects
  • Program Flow
  • Slices
  • Strings
  • User Defined Types
  • Variables
  • Advanced Topics

    • Interfacing With C
    • Memory Management
    • Pointers
    • Custom Pre/Post Compilation Scripts
    • Creating DLLs

Tools

  • MaxIDE
  • BlitzMax Make (bmk)
  • BlitzMax Compiler (bcc)
Edit

Identifiers

Identifiers are used to name constants, variables, functions and user defined types.

Identifiers start with a letter or underscore and can be followed by any combination of letters, digits or underscores. For example, the following are all valid identifiers:

player1_up
your_name
_hello_world_

Identifiers in BlitzMax are case-insensitive. This means that the identifiers hello, Hello and HELLO are all treated as the same identifier.

The following identifiers are reserved for use by the BlitzMax language, and can not be used as general purpose identifiers:

Strict SuperStrict Module ModuleInfo Framework
End Return Continue Exit Assert
Public Protected Private
True False Pi Null Self Super
Byte Short Int UInt Long ULong Size_T 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 Export
Function EndFunction
Type EndType Extends
Interface EndInterface Implements
Struct EndStruct
Enum EndEnum
Method EndMethod
Operator
Local Global Const Field ReadOnly
Abstract Final Override
Where
Rem EndRem
If Then Else ElseIf EndIf
For To Next Step EachIn
While Wend EndWhile
Repeat Until Forever
Select Case Default EndSelect
Try Catch Finally EndTry Throw
Goto DefData ReadData RestoreData
NoDebug
Alias
← FunctionsLiterals →
BlitzMax
Docs
Getting StartedDownloadsAbout
Community
ResourcesSyntaxBomb Forums
More
GitHubStarChat on Discord
Copyright © 2022 Bruce A Henderson