Skip to content

Commit

Permalink
Rename generate -> tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Nov 16, 2023
1 parent ec9b91d commit 6217673
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY : all clean clean-python compile coverage generate idris lint machines profile special test test-all type

all : machines idris lint test generate
all : machines idris lint test tools

clean-python :
rm -rf __pycache__ **/__pycache__ .mypy_cache .mutmut-cache .coverage* html* build/ *.so **/*.so classes.png packages.png
Expand Down Expand Up @@ -44,7 +44,7 @@ clean-rust :

PYTHON = python3

MODULES = tm generate test *.py
MODULES = tm tools test *.py

PYLINT = $(PYTHON) -m pylint

Expand All @@ -63,7 +63,7 @@ MYPYC = $(PYTHON) -m mypyc

compile : rust
$(MYPYC) --version
$(MYPYC) tm generate test/utils.py --exclude rust_stuff
$(MYPYC) tm tools test/utils.py --exclude rust_stuff

TUR = test.test_turing.Fast
PROG = test.test_program
Expand Down Expand Up @@ -96,7 +96,7 @@ coverage : rust
$(COVERAGE) html

diagrams :
pyreverse --only-classnames --no-standalone --colorized -o png tm generate test
pyreverse --only-classnames --no-standalone --colorized -o png tm tools test

# PYTHONPATH=$PYTHONPATH:tm make special target=tm/tape.py
special :
Expand Down
2 changes: 1 addition & 1 deletion c_prog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys

from generate.c import make_c
from tools.c import make_c


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion dump_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import tempfile
import subprocess

from generate.dot import make_dot
from tools.dot import make_dot

if __name__ == '__main__':
_, path = tempfile.mkstemp()
Expand Down
2 changes: 1 addition & 1 deletion instr_seq.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys

from tm.show import show_slot
from generate.instr_seq import instr_seq
from tools.instr_seq import instr_seq

def format_sequence(prog: str) -> None:
print(f' "{prog.strip()}": {{')
Expand Down
4 changes: 2 additions & 2 deletions test/test_code.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import TestCase

from generate.c import make_c
from generate.dot import make_dot
from tools.c import make_c
from tools.dot import make_dot

TEST_FILES = {
"1RB 1RC 1LC 1RD 1RA 1LD 0RD 0LB": 2819,
Expand Down
2 changes: 1 addition & 1 deletion test/test_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
cant_spin_out,
)

from generate.instr_seq import instr_seq
from tools.instr_seq import instr_seq


class TestDisplay(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/test_turing.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)
from tm.lin_rec import StrictLinRecMachine, LooseLinRecMachine

from generate.instr_seq import instr_seq
from tools.instr_seq import instr_seq

if TYPE_CHECKING:
from typing import Any
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6217673

Please sign in to comment.