+ // Loads a nasal script from an external file and inserts it as a
+ // global module of the specified name.
+ void loadModule(SGPath file, const char* moduleName);
+
+ // Simple hook to run arbitrary source code. Returns a bool to
+ // indicate successful execution. Does *not* return any Nasal
+ // values, because handling garbage-collected objects from C space
+ // is deep voodoo and violates the "simple hook" idea.
+ bool parseAndRun(const char* sourceCode);
+
+ // Slightly more complicated hook to get a handle to a precompiled
+ // Nasal script that can be invoked via a call() method. The
+ // caller is expected to delete the FGNasalScript returned from
+ // this function. The "name" argument specifies the "file name"
+ // for the source code that will be printed in Nasal stack traces
+ // on error.
+ FGNasalScript* parseScript(const char* src, const char* name=0);