lispython 0.2.0__tar.gz → 0.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.
- {lispython-0.2.0 → lispython-0.2.1}/PKG-INFO +6 -6
- {lispython-0.2.0 → lispython-0.2.1}/README.md +1 -1
- {lispython-0.2.0 → lispython-0.2.1}/pyproject.toml +4 -4
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/tools.lpy +11 -4
- {lispython-0.2.0 → lispython-0.2.1}/LICENSE.md +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/__init__.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/compiler/__init__.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/compiler/expr.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/compiler/literal.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/compiler/stmt.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/compiler/utils.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/importer.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/macro.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/meta_functions.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/nodes.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/parser.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core/utils.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/core_meta_functions.lpy +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/macros/__init__.py +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/macros/init.lpy +0 -0
- {lispython-0.2.0 → lispython-0.2.1}/src/lispy/macros/sugar.lpy +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lispython
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Lisp-like Syntax for Python with Lisp-like Macros
|
|
5
|
-
Home-page: https://
|
|
5
|
+
Home-page: https://jetack.github.io/lispython
|
|
6
6
|
License: MIT
|
|
7
|
-
Author:
|
|
8
|
-
Author-email:
|
|
7
|
+
Author: Jetack
|
|
8
|
+
Author-email: jetack23@gmail.com
|
|
9
9
|
Requires-Python: >=3.11,<3.12
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
-
Project-URL: Repository, https://github.com/
|
|
13
|
+
Project-URL: Repository, https://github.com/jetack/lispython
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
|
|
16
16
|
# LisPython
|
|
17
17
|
[](https://badge.fury.io/py/lispython)
|
|
18
18
|
|
|
19
19
|
# Documentation
|
|
20
|
-
You can find the documentation at [https://
|
|
20
|
+
You can find the documentation at [https://jetack.github.io/lispython/](https://jetack.github.io/lispython/).
|
|
21
21
|
|
|
22
22
|
# Installation
|
|
23
23
|
## Manual Installation (for development)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://badge.fury.io/py/lispython)
|
|
3
3
|
|
|
4
4
|
# Documentation
|
|
5
|
-
You can find the documentation at [https://
|
|
5
|
+
You can find the documentation at [https://jetack.github.io/lispython/](https://jetack.github.io/lispython/).
|
|
6
6
|
|
|
7
7
|
# Installation
|
|
8
8
|
## Manual Installation (for development)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "lispython"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
description = "Lisp-like Syntax for Python with Lisp-like Macros"
|
|
5
|
-
authors = ["
|
|
5
|
+
authors = ["Jetack <jetack23@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
7
7
|
readme = "README.md"
|
|
8
|
-
homepage = "https://
|
|
9
|
-
repository = "https://github.com/
|
|
8
|
+
homepage = "https://jetack.github.io/lispython"
|
|
9
|
+
repository = "https://github.com/jetack/lispython"
|
|
10
10
|
packages = [
|
|
11
11
|
{include = "lispy", from = "src"}
|
|
12
12
|
]
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
(import os.path as osp)
|
|
8
8
|
(import runpy)
|
|
9
9
|
(import sys)
|
|
10
|
+
(import traceback)
|
|
10
11
|
|
|
11
12
|
(try
|
|
12
13
|
(import black)
|
|
@@ -109,20 +110,26 @@
|
|
|
109
110
|
|
|
110
111
|
(def repl [:translate False]
|
|
111
112
|
(= scope SCOPE)
|
|
112
|
-
(eval-and-print "(require lispy.macros *)
|
|
113
|
+
(eval-and-print "(require lispy.macros *)
|
|
114
|
+
(from pprint [pprint])")
|
|
113
115
|
(while True
|
|
114
116
|
(try
|
|
115
117
|
(do
|
|
116
118
|
(= src (read-multiline-input "repl> "))
|
|
117
119
|
(eval-and-print src scope translate))
|
|
120
|
+
(except [SystemExit]
|
|
121
|
+
(print "SystemExit caught. Exiting REPL.")
|
|
122
|
+
(break))
|
|
118
123
|
(except [EOFError as e]
|
|
119
|
-
(
|
|
124
|
+
(print "Ctrl-d input. Exiting REPL.")
|
|
125
|
+
(break))
|
|
120
126
|
(except [KeyboardInterrupt]
|
|
121
127
|
(print "\nKeyboard Interrupt")
|
|
122
128
|
(continue))
|
|
123
129
|
(except [Exception as e]
|
|
124
|
-
(print "
|
|
125
|
-
(
|
|
130
|
+
(print "An error occurred:\n====================================")
|
|
131
|
+
(traceback.print_exc)
|
|
132
|
+
(print "====================================")))))
|
|
126
133
|
|
|
127
134
|
(def run []
|
|
128
135
|
(cond (< (len sys.argv) 2)
|
|
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
|