varphi-devkit 1.3.0__tar.gz → 1.4.0__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.
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/PKG-INFO +1 -1
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/pyproject.toml +1 -1
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/compilation.py +7 -1
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/model.py +2 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/LICENSE +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/README.md +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/__init__.py +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/Varphi.g4 +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/__init__.py +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/antlr/VarphiLexer.py +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/antlr/VarphiListener.py +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/antlr/VarphiParser.py +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/antlr/__init__.py +0 -0
- {varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/error_listener.py +0 -0
|
@@ -88,7 +88,13 @@ class VarphiCompiler(VarphiListener, ABC):
|
|
|
88
88
|
logging.debug("Then character: %s", then_character)
|
|
89
89
|
then_direction = VarphiHeadDirection(ctx.HEAD_DIRECTION().getText())
|
|
90
90
|
logging.debug("Then direction: %s", then_direction)
|
|
91
|
-
|
|
91
|
+
line_number_in_source = ctx.start.line
|
|
92
|
+
line = VarphiLine(if_state,
|
|
93
|
+
tape_character,
|
|
94
|
+
then_state,
|
|
95
|
+
then_character,
|
|
96
|
+
then_direction,
|
|
97
|
+
line_number_in_source)
|
|
92
98
|
logging.debug("Delegating to handleLine() helper method")
|
|
93
99
|
self.handle_line(line)
|
|
94
100
|
|
|
@@ -45,9 +45,11 @@ class VarphiLine:
|
|
|
45
45
|
then_state: next state
|
|
46
46
|
then_character: character to write
|
|
47
47
|
then_direction: direction to move the head
|
|
48
|
+
line_number_in_source: the corresponding line number in the original source Varphi program
|
|
48
49
|
"""
|
|
49
50
|
if_state: str
|
|
50
51
|
if_character: VarphiTapeCharacter
|
|
51
52
|
then_state: str
|
|
52
53
|
then_character: VarphiTapeCharacter
|
|
53
54
|
then_direction: VarphiHeadDirection
|
|
55
|
+
line_number_in_source: int
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{varphi_devkit-1.3.0 → varphi_devkit-1.4.0}/src/varphi_devkit/syntax/antlr/VarphiListener.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|