Skip to content

Commit

Permalink
moved library files to lib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiek committed Oct 16, 2024
1 parent 93bb3ce commit 1da2e5d
Show file tree
Hide file tree
Showing 29 changed files with 13 additions and 514 deletions.
18 changes: 0 additions & 18 deletions Base.thm

This file was deleted.

44 changes: 0 additions & 44 deletions Binary.thm

This file was deleted.

4 changes: 0 additions & 4 deletions FunctionalProgramming.thm

This file was deleted.

82 changes: 0 additions & 82 deletions List.thm

This file was deleted.

4 changes: 0 additions & 4 deletions ListTests.thm

This file was deleted.

8 changes: 0 additions & 8 deletions Log.thm

This file was deleted.

25 changes: 13 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PYTHON = $(shell command -v python3.11)

LIB_DIR = ./lib
TEST_PASS_DIR = ./test/should-pass
TEST_ERROR_DIR = ./test/should-error

Expand All @@ -13,42 +14,42 @@ default: tests tests-lib # check_docs
check_docs: check_index check_fun check_intro check_ref

tests-should-pass:
$(PYTHON) ./deduce.py --recursive-descent $(TEST_PASS_DIR)
$(PYTHON) ./deduce.py --lalr $(TEST_PASS_DIR)
$(PYTHON) ./deduce.py --recursive-descent $(TEST_PASS_DIR) --dir $(LIB_DIR)
$(PYTHON) ./deduce.py --lalr $(TEST_PASS_DIR) --dir $(LIB_DIR)

tests-should-error:
$(PYTHON) ./deduce.py --recursive-descent $(TEST_ERROR_DIR) --error
$(PYTHON) ./deduce.py --lalr $(TEST_ERROR_DIR) --error
$(PYTHON) ./deduce.py --recursive-descent $(TEST_ERROR_DIR) --error --dir $(LIB_DIR)
$(PYTHON) ./deduce.py --lalr $(TEST_ERROR_DIR) --error --dir $(LIB_DIR)


tests-lib:
$(PYTHON) ./deduce.py . --recursive-descent
$(PYTHON) ./deduce.py ./lib --recursive-descent --dir $(LIB_DIR)
# List parsing needs to be updated in Deduce.lark
# $(PYTHON) ./deduce.py . --lalr

tests: tests-should-pass tests-should-error

check_index:
/Users/jsiek/Library/Python/3.11/bin/entangled tangle
$(PYTHON) ./deduce.py --recursive-descent index.pf
$(PYTHON) ./deduce.py --lalr index.pf
$(PYTHON) ./deduce.py --recursive-descent index.pf --dir $(LIB_DIR)
$(PYTHON) ./deduce.py --lalr index.pf --dir $(LIB_DIR)

check_fun:
/Users/jsiek/Library/Python/3.11/bin/entangled tangle
$(PYTHON) ./deduce.py --recursive-descent FunctionalProgramming.pf
$(PYTHON) ./deduce.py --recursive-descent FunctionalProgramming.pf --dir $(LIB_DIR)
# List parsing needs to be updated in Deduce.lark
# $(PYTHON) ./deduce.py --lalr FunctionalProgramming.pf

check_intro:
/Users/jsiek/Library/Python/3.11/bin/entangled tangle
$(PYTHON) ./deduce.py --recursive-descent ProofIntro.pf
$(PYTHON) ./deduce.py --recursive-descent ProofIntro.pf --dir $(LIB_DIR)
# List parsing needs to be updated in Deduce.lark
# $(PYTHON) ./deduce.py --lalr ProofIntro.pf
# $(PYTHON) ./deduce.py --lalr ProofIntro.pf --dir $(LIB_DIR)

check_ref:
/Users/jsiek/Library/Python/3.11/bin/entangled tangle
$(PYTHON) ./deduce.py --recursive-descent Reference.pf
$(PYTHON) ./deduce.py --lalr Reference.pf
$(PYTHON) ./deduce.py --recursive-descent Reference.pf --dir $(LIB_DIR)
$(PYTHON) ./deduce.py --lalr Reference.pf --dir $(LIB_DIR)

clean:
rm -f index.pf FunctionalProgramming.pf ProofIntro.pf
Expand Down
14 changes: 0 additions & 14 deletions Maps.thm

This file was deleted.

22 changes: 0 additions & 22 deletions MultiSet.thm

This file was deleted.

Loading

0 comments on commit 1da2e5d

Please sign in to comment.