Compare commits

..

No commits in common. "0c529c5cd98d97619edc79379b94a908cc8898a6" and "3733c10a4e303ead385b05c968bf3e296480d744" have entirely different histories.

3 changed files with 25 additions and 11 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
LIB := ./.lake/build/lib/Pantograph.olean
EXE := ./.lake/build/bin/pantograph
SOURCE := $(wildcard *.lean Pantograph/*.lean Pantograph/**/*.lean) lean-toolchain
TEST_EXE := ./.lake/build/bin/test
TEST_SOURCE := $(wildcard Test/*.lean Test/**/*.lean)
$(LIB) $(EXE): $(SOURCE)
lake build pantograph
$(TEST_EXE): $(LIB) $(TEST_SOURCE)
lake build test
test: $(TEST_EXE)
$(TEST_EXE)
clean:
lake clean
.PHONY: test clean

View File

@ -11,9 +11,9 @@ examine the symbol list of a Lean project for machine learning.
For Nix based workflow, see below. For Nix based workflow, see below.
Install `elan` and `lake`, and run Install `elan` and `lake`. Execute
``` sh ``` sh
lake build make
``` ```
This builds the executable in `.lake/build/bin/pantograph`. This builds the executable in `.lake/build/bin/pantograph`.
@ -146,12 +146,7 @@ A Lean development shell is provided in the Nix flake.
The tests are based on `LSpec`. To run tests, The tests are based on `LSpec`. To run tests,
``` sh ``` sh
lake test make test
```
You can run an individual test by specifying a prefix
``` sh
lake test -- "Tactic/No Confuse"
``` ```
## Nix based workflow ## Nix based workflow

View File

@ -10,7 +10,7 @@ lean_lib Pantograph {
@[default_target] @[default_target]
lean_exe pantograph { lean_exe pantograph {
root := `Main root := `Main
-- Solves the native symbol not found problem -- Somehow solves the native symbol not found problem
supportInterpreter := true supportInterpreter := true
} }
@ -18,9 +18,8 @@ require LSpec from git
"https://github.com/lurk-lab/LSpec.git" @ "3388be5a1d1390594a74ec469fd54a5d84ff6114" "https://github.com/lurk-lab/LSpec.git" @ "3388be5a1d1390594a74ec469fd54a5d84ff6114"
lean_lib Test { lean_lib Test {
} }
@[test_driver]
lean_exe test { lean_exe test {
root := `Test.Main root := `Test.Main
-- Solves the native symbol not found problem -- Somehow solves the native symbol not found problem
supportInterpreter := true supportInterpreter := true
} }