-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This includes: - Duplicating [elpi2html.elpi] and [elpi-quoted_syntax.elpi] form elpi. - Always resolving file paths by treating the first component as a Coq directory path, and the rest as a relative path from its mapping. - Require a file path argument in the [Elpi Print] command, resolved in the same way.
- Loading branch information
Rodolphe Lepigre
authored and
Rodolphe Lepigre
committed
Sep 24, 2024
1 parent
4a6e479
commit e7eabff
Showing
30 changed files
with
578 additions
and
123 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
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.