bmarques1995/star ? reverse-engineered prompt

Reverse engineered prompt

Build me a small C++ scripting language called Star, with an interpreter that can run scripts from the command line and is easy to embed inside other C++ apps.

I want the language to support basic variables, expressions, functions, classes, control flow, lexical scoping, and calling native C++ functions from scripts. It should feel like a simple general purpose scripting language, with a tree walking interpreter, parser, and runtime values handled cleanly.

Please set it up as a CMake project that builds a usable library and an executable, and make sure it is easy to link into another project. Include a few sample scripts and basic automated tests so I can see how it works. Keep the code organized and use modern C++.

If you need to, look up current docs online for any CMake or dependency details that help get it building cleanly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab