init
This commit is contained in:
commit
f73f3c5386
7 changed files with 103 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.direnv
|
||||
*.lp
|
||||
*.lpo
|
||||
depend
|
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
.PHONY: T
|
||||
all: T
|
||||
|
||||
T: T.lp
|
||||
|
||||
%.lpo : %.mod %.sig
|
||||
tjcc $*
|
||||
|
||||
%.lp : %.lpo
|
||||
tjlink $*
|
||||
|
||||
-include depend
|
||||
depend: *.mod *.sig
|
||||
tjdepend *.mod > depend-stage
|
||||
mv depend-stage depend
|
5
T.mod
Normal file
5
T.mod
Normal file
|
@ -0,0 +1,5 @@
|
|||
module T.
|
||||
|
||||
|
||||
|
||||
/* vim: set ft=lprolog : */
|
14
T.sig
Normal file
14
T.sig
Normal file
|
@ -0,0 +1,14 @@
|
|||
sig T.
|
||||
|
||||
kind ty type.
|
||||
kind tm type.
|
||||
|
||||
type nat ty.
|
||||
type arr (ty -> ty) -> ty.
|
||||
|
||||
type zero tm.
|
||||
type suc tm -> tm.
|
||||
type lam string -> ty -> tm -> tm.
|
||||
type ap tm -> tm -> tm.
|
||||
|
||||
|
58
flake.lock
Normal file
58
flake.lock
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710146030,
|
||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "flake-utils",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1663551060,
|
||||
"narHash": "sha256-e2SR4cVx9p7aW/XnVsGsWZBplApA9ZJUjc0fejJhnYo=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8a5b9ee7b7a2b38267c9481f5c629c015108ab0d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
6
flake.nix
Normal file
6
flake.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in { devShell = pkgs.mkShell { packages = with pkgs; [ teyjus ]; }; });
|
||||
}
|
Loading…
Reference in a new issue