#include #include #include #include int main( int /*argc*/ , char * /*argv*/[] ) { chaiscript::ChaiScript ch( chaiscript::Std_Lib::library( ) ); static const char script[ ] = R""( class Rectangle { def Rectangle() { } } var rect = Rectangle( ); )""; try { ch.eval( script ); } catch ( std::exception e ) { printf( " >>> Exception thrown: %s \n" , e.what( ) ); } return 1; }