This directory contains example code demonstrating various features of the KAI language system.
Demonstrates modern C++ integration with KAI's reflection system, showing how to expose C++ classes and methods to the scripting runtime.
- foreach_examples.pi - Demonstrates foreach loop constructs in Pi
- test_foreach.pi - Test cases for Pi foreach functionality
Examples are built as part of the main KAI build process:
mkdir build && cd build
cmake ..
makeAfter building, examples can be found in:
build/Source/App/Console/
Run the console application to execute Pi and Rho scripts:
./console script.pi
./console -l rho script.rhoFor more comprehensive examples, see the test directories:
Test/Language/TestPi/Scripts/- Pi language examplesTest/Language/TestRho/Scripts/- Rho language examples