Drup / Functoria Lua
Licence: isc
Building Lua interpreters with lot's of functors
Programming Languages
ocaml
1615 projects
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:
- A version of functoria that support projections: https://github.com/mirage/functoria/pull/150
- An opamified version of lua-ml: https://github.com/lindig/lua-ml/pull/3
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].