~maelkum/viua-stdjson

Viua VM standard JSON module
Merge branch 'master' of git.sr.ht:~maelkum/viua-stdjson
Add generic catch-all for exceptions thrown from nlohmann::json

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~maelkum/viua-stdjson
read/write
git@git.sr.ht:~maelkum/viua-stdjson

You can also use your local clone with git send-email.

Viua VM standard JSON module

Supports all basic data structures and types.


Build instructions

This instruction assumes the following directory structure:

core/viuavm     # core Viua VM repository
libs/json       # this repository

Make sure you have built the latest devel code from core Viua VM repository. Then, starting from the core Viua VM repository, execute the following commands to clone the JSON repository and enter it:

$ cd ../../
$ mkdir -p libs
$ git clone --recursive https://git.sr.ht/~maelkum/viua-stdjson
$ cd json

Then, to compile the module execute:

$ make

Then, to test that it worked:

$ export VIUA_LIBRARY_PATH=./build
$ ../../core/viuavm/build/bin/vm/asm ./example.asm
$ ../../core/viuavm/build/bin/vm/kernel ./a.out