Catspeak Reference


codegen

Responsible for the code generation stage of the Catspeak compiler.

This stage converts Catspeak IR, produced by CatspeakParser or CatspeakIRBuilder, into various lower-level formats. The most interesting of these formats is the conversion of Catspeak programs into native GML functions.

§ CATSPEAK_TIMEOUT

#macro CATSPEAK_TIMEOUT 1000

The number of microseconds before a Catspeak program times out. The default is 1 second.

Returns Real

§ is_catspeak

function is_catspeak(
  value : Any,
) -> Bool

Checks whether a value is a valid Catspeak function compiled through CatspeakGMLCompiler.

Arguments

  • value

    The value to check is a Catspeak function.

Returns Bool