turing-py 2.2.0__tar.gz → 2.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {turing_py-2.2.0 → turing_py-2.2.1}/PKG-INFO +1 -1
- {turing_py-2.2.0 → turing_py-2.2.1}/pyproject.toml +1 -1
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/dsl/loader.py +2 -1
- {turing_py-2.2.0 → turing_py-2.2.1}/LICENSE +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/README.md +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/__init__.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/alphabet/__init__.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/alphabet/input_alphabet.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/alphabet/symbol.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/alphabet/tape_alphabet.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/dsl/__init__.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/dsl/ast.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/dsl/lexer.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/dsl/parser.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/dsl/token.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/exception.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/machine/__init__.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/machine/machine.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/machine/states.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/machine/tape.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/transition/__init__.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/transition/direction.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/transition/transition.py +0 -0
- {turing_py-2.2.0 → turing_py-2.2.1}/src/tmpy/transition/transition_function.py +0 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Loader for the Turing machine DSL.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
+
from ..alphabet import Symbol
|
|
8
9
|
from ..transition import Transition
|
|
9
10
|
from .lexer import Lexer
|
|
10
11
|
from .parser import MachineNode, Parser
|
|
@@ -48,7 +49,7 @@ class MachineLoader:
|
|
|
48
49
|
|
|
49
50
|
for node in machine_ast.transitions:
|
|
50
51
|
|
|
51
|
-
t = Transition(node.state, node.read, node.next_state, node.write, node.move)
|
|
52
|
+
t = Transition(node.state, Symbol(node.read), node.next_state, Symbol(node.write), node.move)
|
|
52
53
|
|
|
53
54
|
transitions.append(t)
|
|
54
55
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|