Dz
Djazair
v1.0.5
🔍

Built-in Functions

The following globally defined functions are accessible from any Djazair code block:

Output & Input

  • print(...args) - Prints arguments to console stdout separated by spaces, followed by newline.
  • input(prompt?) - Prints prompt if supplied, waits and returns string input from user.

Type Conversions

  • str(val) - Convert to string.
  • num(val) - Convert to number (float).
  • int(val) - Truncate to integer.
  • float(val) - Convert to float.
  • bool(val) - Convert to boolean.

String & Array Utilities

  • chr(code) - Returns character for integer code.
  • ord(char) - Returns integer code of first character.
  • range(start, stop?, step?) - Generates array of numbers.
  • enumerate(list, start?) - Pairs indices with values.
  • zip(...lists) - Groups corresponding elements from multiple arrays.

Type Checkers

  • type(val) - Returns type name as string ("Number", "String", "Bool", "Null", "Array", "Map", "Range", "Function", "Class", "Instance").
  • isNull(val), isString(val), isNumber(val), isBool(val)
  • isArray(val), isMap(val), isFunction(val), isClass(val), isInstance(val)

Utility & Math

  • abs(val) - Absolute value.
  • round(val) - Round to nearest integer.
  • exit(code?) - Terminate script with optional exit code.

Engine Internals

  • getFile() - Returns path of running script.
  • getDir() - Returns directory of running script.
  • getLine() - Returns current line number.
  • __native(name) - Loads internal VM library module by name.
  • hasNative(name) - Checks if a native module is available.
© 2026 Harizi Riyadh. Released under the MIT License.
Official Website for Djazair.