-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed the bottom up implementation (the first one) to BottomUp; separate Version file for the version; separate Default module that packs BottomUp with string constants
- Loading branch information
Showing
21 changed files
with
6,714 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ datalog/const.ml | |
*.docdir | ||
.session | ||
TAGS | ||
version.ml | ||
setup.log | ||
setup.data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
name="datalog" | ||
version="0.4.1" | ||
description="Simple Datalog fixpoint computation library" | ||
requires="" | ||
# OASIS_START | ||
# DO NOT EDIT (digest: 73f514313ec20c594d2d4fbcfc0e2cdf) | ||
version = "0.4.2" | ||
description = "An in-memory datalog implementation for OCaml" | ||
requires = "unix num str" | ||
archive(byte) = "datalog.cma" | ||
archive(byte, plugin) = "datalog.cma" | ||
archive(native) = "datalog.cmxa" | ||
archive(native, plugin) = "datalog.cmxs" | ||
exists_if = "datalog.cma" | ||
# OASIS_STOP | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
# where to install the command line? | ||
BINDIR ?= /usr/bin/ | ||
# OASIS_START | ||
# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb) | ||
|
||
# name of the library | ||
NAME = datalog | ||
SETUP = ocaml setup.ml | ||
|
||
CLI = datalog_cli.native topDownCli.native | ||
LIB = datalog.cmxa datalog.cma | ||
DOC = datalog.docdir/index.html | ||
TARGETS = $(DOC) $(LIB) $(CLI) | ||
build: setup.data | ||
$(SETUP) -build $(BUILDFLAGS) | ||
|
||
INSTALL_LIB = datalog.cmxa datalog.cma datalog.a datalog.cmi datalog.mli | ||
doc: setup.data build | ||
$(SETUP) -doc $(DOCFLAGS) | ||
|
||
# compilation options | ||
OPTIONS ?= -classic-display | ||
test: setup.data build | ||
$(SETUP) -test $(TESTFLAGS) | ||
|
||
%.ml: %.mlp | ||
sed -e "s/DATALOG_VERSION/$(VERSION)/g" \ | ||
$< > $@ | ||
all: | ||
$(SETUP) -all $(ALLFLAGS) | ||
|
||
all: prod | ||
install: setup.data | ||
$(SETUP) -install $(INSTALLFLAGS) | ||
|
||
prod: | ||
ocamlbuild $(OPTIONS) -tag noassert $(TARGETS) | ||
uninstall: setup.data | ||
$(SETUP) -uninstall $(UNINSTALLFLAGS) | ||
|
||
debug: | ||
ocamlbuild $(OPTIONS) -tag debug $(TARGETS) | ||
reinstall: setup.data | ||
$(SETUP) -reinstall $(REINSTALLFLAGS) | ||
|
||
profile: | ||
ocamlbuild $(OPTIONS) -tag profile $(TARGETS) | ||
clean: | ||
$(SETUP) -clean $(CLEANFLAGS) | ||
|
||
clean: | ||
ocamlbuild -clean | ||
distclean: | ||
$(SETUP) -distclean $(DISTCLEANFLAGS) | ||
|
||
setup.data: | ||
$(SETUP) -configure $(CONFIGUREFLAGS) | ||
|
||
.PHONY: build doc test all install uninstall reinstall clean distclean configure | ||
|
||
# OASIS_STOP | ||
|
||
push_doc: prod | ||
scp -r datalog.docdir/* cedeela.fr:~/simon/root/software/datalog/ | ||
|
||
install: prod | ||
ocamlfind install $(NAME) META $(addprefix _build/,$(INSTALL_LIB)) | ||
cp _build/$(CLI) $(BINDIR)/datalog_cli | ||
|
||
tags: | ||
otags *.ml *.mli | ||
|
||
.PHONY: all clean install tags push_doc | ||
.PHONY: tags push_doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
OASISFormat: 0.3 | ||
Name: datalog | ||
Version: 0.4.2 | ||
Homepage: https://github.com/c-cube/datalog | ||
Authors: Simon Cruanes | ||
License: BSD3 | ||
LicenseFile: LICENSE | ||
Plugins: META (0.3), DevFiles (0.3) | ||
OCamlVersion: >= 4.00.1 | ||
BuildTools: ocamlbuild | ||
FilesAB: version.ml.ab | ||
|
||
Synopsis: An in-memory datalog implementation for OCaml | ||
|
||
Description: | ||
An in-memory datalog implementation for OCaml. It focuses on big sets of rules | ||
with small relations, with frequent updates of the relations. Therefore, it | ||
tries to achieve good behavior in presence of incremental modifications of the | ||
relations. | ||
|
||
Library "datalog" | ||
Path: . | ||
Pack: true | ||
Modules: BottomUp, TopDown, Default, BottomUpAst, BottomUpParser, | ||
BottomUpLexer, TopDownParser, TopDownLexer, TopDownAst, | ||
Version | ||
BuildDepends: unix,num,str | ||
|
||
Document datalog | ||
Title: documentation for Datalog | ||
Type: ocamlbuild (0.3) | ||
BuildTools+: ocamldoc | ||
Install: true | ||
XOCamlbuildPath: . | ||
XOCamlbuildLibraries: datalog | ||
|
||
# CLI client using BottomUp | ||
Executable datalog_cli | ||
Path: . | ||
Install: true | ||
CompiledObject: native | ||
MainIs: datalog_cli.ml | ||
BuildDepends: datalog | ||
|
||
# CLI client using TopDown | ||
Executable topDownCli | ||
Path: . | ||
Install: false | ||
CompiledObject: native | ||
MainIs: topDownCli.ml | ||
BuildDepends: datalog | ||
|
||
SourceRepository head | ||
Type: git | ||
Location: https://github.com/c-cube/datalog | ||
Browser: https://github.com/c-cube/datalog/tree/master/src | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
# OASIS_START | ||
# DO NOT EDIT (digest: 727e0b43e5d8c6a2effb3ab294ecb18a) | ||
# Ignore VCS directories, you can use the same kind of rule outside | ||
# OASIS_START/STOP if you want to exclude directories that contains | ||
# useless stuff for the build process | ||
<**/.svn>: -traverse | ||
<**/.svn>: not_hygienic | ||
".bzr": -traverse | ||
".bzr": not_hygienic | ||
".hg": -traverse | ||
".hg": not_hygienic | ||
".git": -traverse | ||
".git": not_hygienic | ||
"_darcs": -traverse | ||
"_darcs": not_hygienic | ||
# Library datalog | ||
"datalog.cmxs": use_datalog | ||
"bottomUp.cmx": for-pack(Datalog) | ||
"topDown.cmx": for-pack(Datalog) | ||
"default.cmx": for-pack(Datalog) | ||
"bottomUpAst.cmx": for-pack(Datalog) | ||
"bottomUpParser.cmx": for-pack(Datalog) | ||
"bottomUpLexer.cmx": for-pack(Datalog) | ||
"topDownParser.cmx": for-pack(Datalog) | ||
"topDownLexer.cmx": for-pack(Datalog) | ||
"topDownAst.cmx": for-pack(Datalog) | ||
"version.cmx": for-pack(Datalog) | ||
# Executable datalog_cli | ||
"datalog_cli.native": use_datalog | ||
"datalog_cli.native": pkg_unix | ||
"datalog_cli.native": pkg_num | ||
"datalog_cli.native": pkg_str | ||
# Executable topDownCli | ||
"topDownCli.native": use_datalog | ||
"topDownCli.native": pkg_unix | ||
"topDownCli.native": pkg_num | ||
"topDownCli.native": pkg_str | ||
<*.ml{,i}>: use_datalog | ||
<*.ml{,i}>: pkg_unix | ||
<*.ml{,i}>: pkg_num | ||
<*.ml{,i}>: pkg_str | ||
# OASIS_STOP | ||
<**/*.cmx>: inline(10) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.