Skip to main content
Version: 🚧 Alpha 🚧

GAML Language Reference

This page provides cross-links to all GAML constructs organized by category. For complete operator and statement documentation, see the Statements and Expressions reference pages.

Core Types​

TypeDocumentation
actionDefining Actions and Behaviors
floatData Type#float
intData Type#int
boolData Type#bool
stringData Type#string
pointData Type#point
colorData Type#rgb
listData Type#list
matrixData Type#matrix
mapData Type#map
geometryData Type#geometry
typeData Type#gaml_type
imageData Type#image

Declarations​

KeywordDocumentation
speciesManipulate basic Species + Defining Advanced Species
experimentDefining GUI Experiment
modelOrganization of a Model
globalOrganization of a Model
actionDefining Actions and Behaviors
variable declarationsVariables And Attributes
classStatements#class
objectClasses and Objects
defaultLiterals
virtualInheritance#virtual-action

Control Flow​

KeywordDocumentation
ifBasic programming concepts in GAML
elseBasic programming concepts in GAML
loopStatements#loop
switch / matchStatements#switch
doStatements#do
do_ruleBuilt-in Architectures#rules

Actions & Invocation​

KeywordDocumentation
action: (deprecated)Defining Actions and Behaviors — use action: without colon or do
doStatements#do
invokeStatements#invoke

Operators​

Operator CategoryDocumentation
ArithmeticArithmetic operators
LogicalLogical operators
ComparisonComparison operators
StringStrings-related operators
List / ContainerContainers-related operators
MapMap-related operators
MatrixMatrix-related operators
DataframeDataframe-related operators
Spatial / GeometrySpatial operators
PointPoints-related operators
ColorColor-related operators

See also Data Types for type-specific operators.

Pattern Matching​

OperatorDocumentation
match_regexStatements#match_regex
match_one, match_betweenStatements#match_one, Statements#match_between

Output & Data​

KeywordDocumentation
dataStatements#data
datalistStatements#datalist
outputOrganization of a Model

Debugging & System​

KeywordDocumentation
benchmarkStatements#benchmark
abortStatements#abort

Environment & Layout​

KeywordDocumentation
highlightStatements#highlight
layoutStatements#layout
migrateStatements#migrate
meshStatements#mesh
reflexBuilt-in Architectures#reflex
initStatements#init

Advanced Species​

FeatureDocumentation
gridGrid Species
graphGraph Species
mirrorMirror Species
parent:Inheritance

File Types​

TypeDocumentation
simulationSave and restore Simulations
csvDefining Export files
image / pictureDefining Displays Generalities

Pseudo Variables​

See Pseudo Variables for the full list of built-in pseudo variables (self, super, myself, each).

Operators Reference​

See Expressions → Operators [A-A] through Operators [S-Z].