Supports searching for patterns in strings.
This instruction assumes the following directory structure:
core/viuavm # core Viua VM repository libs/regex # 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 regex repository and enter it:
$ cd ../../ $ mkdir -p libs $ git clone --recursive https://git.sr.ht/~maelkum/viua-stdregex $ cd regex
Then, to compile the module execute:
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