codegen-2 2.0.0__tar.gz → 2.1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codegen-2
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Meta-programming
5
5
  License: MIT
6
6
  Author: Binh Vu
@@ -14,6 +14,14 @@ class Statement(ABC):
14
14
  raise NotImplementedError()
15
15
 
16
16
 
17
+ class NoStatement(Statement):
18
+ def __repr__(self):
19
+ return "NoStatement()"
20
+
21
+ def to_python(self):
22
+ return "pass"
23
+
24
+
17
25
  @dataclass
18
26
  class BlockStatement(Statement):
19
27
  # whether the block has its own environment or not -- meaning any variables declared inside the block will be
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "codegen-2"
3
- version = "2.0.0"
3
+ version = "2.1.0"
4
4
  description = "Meta-programming"
5
5
  authors = ["Binh Vu <binh@toan2.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes