#include "../compiler/compiler.h"
#include "../vm/vm.h"
#include "../vm/natives.h"
#include "../common/consts.h"
#include "../utils/utils.h"
#include "../utils/FormatableString.h"
#include <string>
#include <iostream>
#include <locale>
#include <fstream>
#include <sstream>
#include <valarray>
#include <getopt.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | AsebaNode |
struct | AsebaNode::Variables |
Functions | |
void | AsebaAssert (AsebaVMState *vm, AsebaAssertReason reason) |
const AsebaNativeFunctionDescription *const * | AsebaGetNativeFunctionsDescriptions (AsebaVMState *vm) |
void | AsebaNativeFunction (AsebaVMState *vm, uint16 id) |
void | AsebaPutVmToSleep (AsebaVMState *vm) |
void | AsebaResetIntoBootloader (AsebaVMState *vm) |
void | AsebaSendDescription (AsebaVMState *vm) |
void | AsebaSendMessage (AsebaVMState *vm, uint16 type, const void *data, uint16 size) |
void | AsebaSendVariables (AsebaVMState *vm, uint16 start, uint16 length) |
void | AsebaWriteBytecode (AsebaVMState *vm) |
void | checkForError (const std::string &module, bool shouldFail, bool wasError, const std::wstring &errorMessage=L"") |
void | dump_source (const std::wstring &source) |
static bool | executionError (false) |
int | main (int argc, char **argv) |
std::wstring | read_source (const std::string &filename) |
static void | usage (int argc, char **argv) |
Variables | |
static struct option | long_options [] |
static AsebaNativeFunctionPointer | nativeFunctions [] |
static const AsebaNativeFunctionDescription * | nativeFunctionsDescriptions [] |
static const char | short_options [] = "fsdm:" |
void AsebaAssert | ( | AsebaVMState * | vm, |
AsebaAssertReason | reason | ||
) |
Definition at line 122 of file asebatest.cpp.
void checkForError | ( | const std::string & | module, |
bool | shouldFail, | ||
bool | wasError, | ||
const std::wstring & | errorMessage = L"" |
||
) |
Definition at line 243 of file asebatest.cpp.
void dump_source | ( | const std::wstring & | source | ) |
Definition at line 463 of file asebatest.cpp.
static bool executionError | ( | false | ) | [static] |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 271 of file asebatest.cpp.
std::wstring read_source | ( | const std::string & | filename | ) |
Definition at line 431 of file asebatest.cpp.
static void usage | ( | int | argc, |
char ** | argv | ||
) | [static] |
Definition at line 36 of file asebatest.cpp.
struct option long_options[] [static] |
{ { "fail", no_argument, NULL, 'f'}, { "source", no_argument, NULL, 's'}, { "dump", no_argument, NULL, 'd'}, { "memdump", no_argument, NULL, 'u'}, { "memcmp", required_argument, NULL, 'm'}, { 0, 0, 0, 0 } }
Definition at line 27 of file asebatest.cpp.
AsebaNativeFunctionPointer nativeFunctions[] [static] |
Definition at line 91 of file asebatest.cpp.
const AsebaNativeFunctionDescription* nativeFunctionsDescriptions[] [static] |
Definition at line 96 of file asebatest.cpp.
const char short_options[] = "fsdm:" [static] |
Definition at line 26 of file asebatest.cpp.