-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix resolver + duplicate [elpi2html.elpi].
- Loading branch information
Rodolphe Lepigre
committed
Sep 6, 2024
1 parent
e3e2180
commit 81805a2
Showing
8 changed files
with
501 additions
and
71 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
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
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,26 @@ | ||
/* elpi: embedded lambda prolog interpreter */ | ||
/* license: GNU Lesser General Public License Version 2.1 or later */ | ||
/* ------------------------------------------------------------------------- */ | ||
|
||
% HOAS for elpi programs | ||
|
||
kind term type. | ||
|
||
type app list term -> term. | ||
type lam (term -> term) -> term. | ||
type const string -> term. | ||
|
||
type cdata ctype "cdata" -> term. % int, string, float.. see also $is_cdata | ||
|
||
type arg (term -> term) -> term. % only to bind the args of a clause | ||
|
||
kind clause type. | ||
type clause (ctype "Loc.t") -> list string -> term -> clause. | ||
|
||
% a program is then a list of clause while | ||
% the query is just one item of the same kind. | ||
|
||
% see elpi-checker.elpi for an example | ||
|
||
% vim: set ft=lprolog: | ||
|
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
Oops, something went wrong.