This is a pure Lua (+ LPEG) implementation of Datalog.
The core interpreter (
datalog/datalog.lua) is a modified version of
John D. Ramsdell's Datalog from the
This is a work in progress, don't expect it to work flawlessly.
lua main.lua examples/path.dl
This is currently only tested with Lua 5.3 compiled with backwards compatibility for 5.1 and 5.2 and LPEG 0.12. It probably works fine with other Luas though.
Tests depend on cwtest.
datalog/datalog.luais Copyright (C) 2004 The MITRE Corporation and released under the GNU LGPL.
- All other files are Copyright (c) 2016 Pierre Chapuis and released under the MIT license, see LICENSE.txt.