Building Lua interpreters with lot's of functors
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
example
lib
pkg
.gitignore
LICENSE.md
Makefile
Readme.md
functoria-lua.opam

Readme.md

Functoria-lua

Lua-ml is a modular Lua interpreter written in OCaml. "Modular" here means that every part of the interpreter is expressed as a functor parametrized over its dependencies. It allows users to add new primitives and replace parts as desired.

Functoria is a library to create DSL manipulating such functor-based libraries. It was originally created for mirageOS (See this blog post for more details).

functoria-lua uses functoria to define a set of combinators to build customized lua intepretors with lua-ml. See the example directory.

Install

You will need the following things:

Then you can pin this repository:

opam pin add functoria-lua "https://github.com/Drup/functoria-lua.git"

To try out the example:

cd example/
functoria-lua config
opam install --deps .
functoria-lua build

Graph of the example