Game Maker Language
1 program
Added 2025-10-28T06:41:37Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: GML
Provenance: commit cdbae749f0 · authored 2025-10-28T07:41:37+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
6 sources · pl_id:
pl/game-maker-languageExtensions claimed by this language
1 claim. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.gml | linguist | primary | 4.4M files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Simple State Machine
Provenance: commit cdbae749f0 · authored 2025-10-28T07:41:37+01:00 · model google/gemini-2.5-pro · Temp 0.4
// Feather disable all
/// @function scr_state_machine()
/// @description A simple state machine.
/// @returns {Struct}
function scr_state_machine() constructor {
// The current state
state = noone;
// The previous state
previous_state = noone;
/// @function step()
/// @description Steps the state machine.
static step = function() {
if (is_struct(state)) {
if (variable_struct_exists(state, "step")) {
state.step();
}
}
}
/// @function set_state(_state)
/// @description Changes the state of the state machine.
/// @param {Struct} _state The state to change to.
static set_state = function(_state) {
if (state != _state) {
previous_state = state;
state = _state;
if (is_struct(previous_state)) {
if (variable_struct_exists(previous_state, "on_exit")) {
previous_state.on_exit();
}
}
if (is_struct(state)) {
if (variable_struct_exists(state, "on_enter")) {
state.on_enter();
}
}
}
}
}
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.gml/3 | .gml | default | [] |