astreum 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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.

Potentially problematic release.


This version of astreum might be problematic. Click here for more details.

astreum/machine.py CHANGED
@@ -2,6 +2,9 @@ class AstreumMachine:
2
2
  def __init__(self):
3
3
  pass
4
4
 
5
- def execute(self, code: str) -> str:
6
- """Returns the input value."""
7
- return code
5
+ def evaluate(self, code: str) -> list[str]:
6
+ return self.tokenize(code)
7
+
8
+ def tokenize(self, input: str) -> list[str]:
9
+ tokens = input.replace("(", " ( ").replace(")", " ) ").split()
10
+ return tokens
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: astreum
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
5
5
  Author-email: "Roy R. O. Okello" <roy@stelar.xyz>
6
6
  Project-URL: Homepage, https://github.com/astreum/lib
@@ -0,0 +1,7 @@
1
+ astreum/__init__.py,sha256=-hmy95qFWlCbmHEcj5sGniM-UtpIn-iwwhVWFrFkd_w,37
2
+ astreum/machine.py,sha256=pstgeN47YOr6vG3-vx4TMOjmzZD2Xpd66CgSKWB-UNc,296
3
+ astreum-0.1.1.dist-info/LICENSE,sha256=gYBvRDP-cPLmTyJhvZ346QkrYW_eleke4Z2Yyyu43eQ,1089
4
+ astreum-0.1.1.dist-info/METADATA,sha256=W3dD-otz_e9ox6dbsLGrVMxdge0W4VF8WxH_-hbg_ww,637
5
+ astreum-0.1.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
6
+ astreum-0.1.1.dist-info/top_level.txt,sha256=1EG1GmkOk3NPmUA98FZNdKouhRyget-KiFiMk0i2Uz0,8
7
+ astreum-0.1.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- astreum/__init__.py,sha256=-hmy95qFWlCbmHEcj5sGniM-UtpIn-iwwhVWFrFkd_w,37
2
- astreum/machine.py,sha256=o39_-R5tiLwVrkwscWMzYazn-_Qe6Ns1mTvkHupUKjU,167
3
- astreum-0.1.0.dist-info/LICENSE,sha256=gYBvRDP-cPLmTyJhvZ346QkrYW_eleke4Z2Yyyu43eQ,1089
4
- astreum-0.1.0.dist-info/METADATA,sha256=lJ6_9gugRp2AfQk32OATbdEMw-ME-lzkZtzNeo9jRuE,637
5
- astreum-0.1.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
6
- astreum-0.1.0.dist-info/top_level.txt,sha256=1EG1GmkOk3NPmUA98FZNdKouhRyget-KiFiMk0i2Uz0,8
7
- astreum-0.1.0.dist-info/RECORD,,