-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare for 0.7; generate opam files from dune-project; format dune f…
…iles
- Loading branch information
Showing
11 changed files
with
100 additions
and
72 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
# 0.7 | ||
|
||
- compat with OCaml 5.2 | ||
- fix location reporting in parse errors |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
name: "datalog" | ||
version: "0.6" | ||
version: "0.7" | ||
synopsis: "An in-memory datalog implementation for OCaml" | ||
maintainer: "simon.cruanes.2007@m4x.org" | ||
maintainer: ["simon.cruanes.2007@m4x.org"] | ||
authors: ["Simon Cruanes"] | ||
homepage: "https://github.com/c-cube/datalog" | ||
license: "BSD-2-Clause" | ||
doc: ["https://c-cube.github.io/datalog"] | ||
tags: [ | ||
"datalog" | ||
"relational" | ||
"query" | ||
"prolog" | ||
] | ||
build: [ | ||
["dune" "build" "@install" "-p" name "-j" jobs] | ||
["dune" "build" "@doc" "-p" name] {with-doc} | ||
["dune" "runtest" "-p" name] {with-test} | ||
] | ||
tags: ["datalog" "relational" "query" "prolog"] | ||
homepage: "https://github.com/c-cube/datalog" | ||
bug-reports: "https://github.com/c-cube/datalog/issues" | ||
depends: [ | ||
"dune" | ||
"ocaml" { >= "4.08" } | ||
"dune" {>= "2.0"} | ||
"ocaml" {>= "4.08"} | ||
"odoc" {with-doc} | ||
"mdx" { >= "1.3" & with-test} | ||
"mdx" {>= "1.3" & with-test} | ||
] | ||
dev-repo: "git://github.com/c-cube/datalog" | ||
bug-reports: "https://github.com/c-cube/datalog/issues" | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/c-cube/datalog.git" |
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,9 +1,10 @@ | ||
|
||
(alias | ||
(name runtest) | ||
(deps (:readme README.md) | ||
(source_tree tests)) | ||
(action (progn | ||
(run ocaml-mdx test %{readme}) | ||
(diff? %{readme} %{readme}.corrected)))) | ||
|
||
(rule | ||
(alias runtest) | ||
(deps | ||
(:readme README.md) | ||
./src/bottom_up_cli/datalog_cli.exe | ||
(source_tree tests)) | ||
(action | ||
(progn | ||
(run ocaml-mdx test %{readme}) | ||
(diff? %{readme} %{readme}.corrected)))) |
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 +1,19 @@ | ||
(lang dune 1.0) | ||
(lang dune 2.0) | ||
(generate_opam_files true) | ||
|
||
(name datalog) | ||
(version 0.7) | ||
(source (github c-cube/datalog)) | ||
(maintainers "simon.cruanes.2007@m4x.org") | ||
(authors "Simon Cruanes") | ||
(license "BSD-2-Clause") | ||
|
||
(package | ||
(name datalog) | ||
(synopsis "An in-memory datalog implementation for OCaml") | ||
(tags (datalog relational query prolog)) | ||
(depends | ||
(dune ( >= "2.0" )) | ||
(ocaml ( >= "4.08" )) | ||
(odoc :with-doc) | ||
(mdx (and ( >= "1.3" ) :with-test)))) |
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,16 +1,19 @@ | ||
|
||
(rule | ||
(targets version.ml) | ||
(action | ||
(with-stdout-to %{targets} | ||
(echo "let version = \"%{version:datalog}\"")))) | ||
(targets version.ml) | ||
(action | ||
(with-stdout-to | ||
%{targets} | ||
(echo "let version = \"%{version:datalog}\"")))) | ||
|
||
(library | ||
(name datalog) | ||
(public_name datalog) | ||
(synopsis "An in-memory datalog implementation for OCaml") | ||
(libraries) | ||
(flags :standard -color always -safe-string -warn-error -a+8 -w -50)) | ||
(name datalog) | ||
(public_name datalog) | ||
(synopsis "An in-memory datalog implementation for OCaml") | ||
(libraries) | ||
(flags :standard -color always -safe-string -warn-error -a+8 -w -50)) | ||
|
||
(ocamlyacc | ||
(modules Parser)) | ||
|
||
(ocamlyacc (modules Parser)) | ||
(ocamllex (modules Lexer)) | ||
(ocamllex | ||
(modules Lexer)) |
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,5 +1,4 @@ | ||
|
||
(executable | ||
(name datalog_cli) | ||
(public_name datalog_cli) | ||
(libraries datalog)) | ||
(name datalog_cli) | ||
(public_name datalog_cli) | ||
(libraries datalog)) |
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,5 +1,4 @@ | ||
|
||
(library | ||
(name datalog_caml_interface) | ||
(public_name datalog.caml_interface) | ||
(libraries datalog.top_down unix)) | ||
(name datalog_caml_interface) | ||
(public_name datalog.caml_interface) | ||
(libraries datalog.top_down unix)) |
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,9 +1,11 @@ | ||
|
||
(library | ||
(name datalog_top_down) | ||
(public_name datalog.top_down) | ||
(libraries datalog) | ||
(flags :standard -color always -safe-string -warn-error -a+8)) | ||
(name datalog_top_down) | ||
(public_name datalog.top_down) | ||
(libraries datalog) | ||
(flags :standard -color always -safe-string -warn-error -a+8)) | ||
|
||
(ocamllex | ||
(modules Lexer)) | ||
|
||
(ocamllex (modules Lexer)) | ||
(ocamlyacc (modules Parser)) | ||
(ocamlyacc | ||
(modules Parser)) |
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,5 +1,3 @@ | ||
|
||
(executable | ||
(name topDownCli) | ||
(libraries datalog datalog.top_down datalog.unix)) | ||
|
||
(name topDownCli) | ||
(libraries datalog datalog.top_down datalog.unix)) |
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,5 @@ | ||
|
||
(library | ||
(name datalog_unix) | ||
(public_name datalog.unix) | ||
(optional) | ||
(libraries datalog.top_down unix)) | ||
(name datalog_unix) | ||
(public_name datalog.unix) | ||
(optional) | ||
(libraries datalog.top_down unix)) |