Andy

A C/C++ SCRIPTING LANGUAGE

Andy Language

Andy is an interpreted C/C++ scripting language designed to be easy to use and integrate with C/C++. It allows you to write high-performance C/C++ code while using Andy for scripting, bringing the benefits of reflection, dynamic typing, and more. Unlike other scripting languages, Andy automatically generates bindings for your C/C++ code, allowing you to use your classes and functions without additional setup.

Andy can be the primary language of your project, with performance-critical sections written in C/C++, or it can be embedded as a scripting language. When used as the main language, your project can be built for all supported platforms using cross-compilation. Andy scripts are transcribed to C++ whenever possible and, when not, compiled to high-performance bytecode. The final output is bundled and compiled together with C++, allowing the compiler to optimize the entire project.

Minimal Example

As Andy does not needs a main function, you can write a simple program like this:

Functions

Functions are defined like this:

Classes

You can create a class like this:

Primitive Types

Using primitive types is simple:

C++ API

You can include Andy in your C++ project.

C++

C++ Interoperability

You can include C++ in your Andy project without chaging your C++ code. You just need to reference the C++ CMake project.

C++

Andy