~maelkum/viua-stdregex

Standard regex library for Viua VM
New functions, automatic code formatting
Initial commit

refs

master
browse  log 

clone

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

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

Viua VM standard regex module

Supports searching for patterns in strings.


Build instructions

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:

$ 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