FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

#include "daScript/daScript.h" using namespace das; #define TUTORIAL_NAME "/examples/tutorial/tutorial05.das" void tutorial () { TextPrinter tout; // output stream for all compiler messages (stdout. for stringstream use TextWriter) ModuleGroup dummyLibGroup; // module group for compiled program auto fAccess = make_smart(); // default file access // compile program auto program = compileDaScript(getDasRoot() + TUTORIAL_NAME, fAccess, tout, dummyLibGroup); if ( program->failed() ) { // if compilation failed, report errors tout errors ) { tout getContextStackSize()); if ( !program->simulate(ctx, tout) ) { // if interpretation failed, report errors tout errors ) { tout

Back | FazBrowse Home | New Git URL