Skip to the content.

User guide

This is the human documentation for embedding ReScripted in a C++ project. C++17. One header: ReScripted.h.

Read these in order. Each page adds one piece. The words stay the same.

  1. Getting started — a program that prints hello
  2. Putting the language in the binary — keep the JSON in a file, compile it in
  3. Language JSON — keywords, comments, command, entity
  4. Calling C++ from a script — engine.bind("spawn", …)
  5. Libraries — import math
  6. Loading scripts — load, run, call, unload
  7. API reference — names and signatures

A coding agent that is writing the language JSON should start at ../agents/AGENTS.md, not here.