src/burrito

Search:
Group by:
Source   Edit  

Burrito - Multi-language scripting engine for Nim

This is the main Burrito module that provides access to both QuickJS and MicroPython wrappers with a unified interface.

Basic usage:

import burrito           # Import everything
import burrito/qjs       # Import just QuickJS
import burrito/mpy       # Import just MicroPython

Exports

JSRuntime, JS_WriteObject, canUseStdLib, JS_GetException, registerFunction, JSAutoValue, JS_ToCString, JS_ThrowRangeError, getArrayLength, get, JS_PromiseResult, evalBytecode, getArrayElement, js_std_init_handlers, setArrayElement, tableToJS, JS_WRITE_OBJ_BSWAP, JS_HasProperty, JS_NewFloat64, getBool, isObject, JS_PromiseState, JS_NewRuntime, JS_ToInt32, JS_FreeValue, getInt, NimFunctionEntry, close, toIntFromAuto, NimFunction1, js_std_add_helpers, getProperty, registerFunction, eval, JS_FreeAtom, toStringFromAuto, JS_NewCFunctionData, JS_NewCFunction, JS_ThrowReferenceError, nimIntToJS, get, autoDetect, registerFunction, defaultConfig, JSValueConst, JS_NewArray, isBool, JS_CFUNC_generic_magic, getGlobalProperty, NimFunction3, evalModule, JS_NewContext, JS_NewCFunctionMagic, toNimString, JSException, JSContext, runPendingJobs, nimStringToJS, JSContextPtr, JS_DetectModule, JS_EVAL_TYPE_GLOBAL, JS_SetPropertyStr, evalBytecodeModule, isNull, JS_EVAL_FLAG_STRIP, JS_DeleteProperty, JS_WRITE_OBJ_BYTECODE, []=, toNimInt, BurritoContextData, NimFunction2, toNimBool, JSCFunction, withProperty, toInt32FromAuto, set, JS_SetPropertyUint32, jsFalse, JSValueKind, NimFunctionKind, setJSFunction, JS_AtomToString, JSCFunctionMagic, JS_ToBool, getString, js_std_loop, JS_EvalFunction, compileToBytecode, jsTrue, JS_FreeRuntime, JS_EVAL_TYPE_MODULE, JS_SetModuleLoaderFunc, JS_CFUNC_generic, JS_EVAL_FLAG_STRICT, JS_DupValue, isNumber, newArray, JS_DefinePropertyValueStr, setProperty, configWithOsLib, $, jsNull, JS_PROP_CONFIGURABLE, loadBytecodeModule, JS_EVAL_FLAG_COMPILE_ONLY, JS_NewAtomLen, JS_GetModuleNamespace, toNimFloat, JS_ThrowInternalError, getFloat, JS_SetProperty, withArrayElement, JS_PROP_ENUMERABLE, jsUndefined, newQuickJS, evalWithGlobals, JS_Throw, JS_GetProperty, JSRuntimePtr, js_init_module_std, JS_NewStringLen, registerFunction, setGlobalProperty, js_std_await, JS_PROP_WRITABLE, JS_GetContextOpaque, processStdLoop, canUseOsLib, isString, withGlobalObject, isFunction, detectType, toBoolFromAuto, QuickJSConfig, withIdiomatic, JS_RunGC, isArray, JS_SetContextOpaque, isUndefined, JS_ToFloat64, JS_GetPropertyStr, QuickJS, iterateArray, JSValue, configWithStdLib, JSModuleDef, JSAutoDetectedValue, JS_FreeContext, $, JSClassID, JS_NewObject, configWithBothLibs, js_module_loader, JS_NewInt32, JS_Eval, toFloatFromAuto, JSAtom, jsArgsToSeq, getPropertyValue, JS_ReadObject, js_std_eval_binary, registerFunction, js_init_module_os, getArrayElementValue, JS_ExecutePendingJob, JS_READ_OBJ_BYTECODE, JS_NewAtom, js_std_free_handlers, nimBoolToJS, nimTupleToJSArray, JSCFunctionData, JS_GetPropertyUint32, collectArray, JS_FreeCString, JS_NewBool, JS_NewCFunction2, JS_GetGlobalObject, nimFloatToJS, NimFunction0, JS_ThrowTypeError, JS_IsException, NimFunctionVariadic, seqToJS, MicroPython, startRepl, toNimString, evalBytecode, newMicroPython, close, nimStringToMP, eval