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