A simple, lightweight implementation of python3-like language.
-
lexical scope -
exception support -
try - except - finally -
simple import -
slice grammar -
lambda function -
argument unpack -
package import
-
basic testcase
-
eval
-
xxx if xxx else xxx grammar
-
print fix for cycle reference
-
filesystem
-
IO stream -
'super' type
-
repl
-
dll load
-
decorator
-
multiple value assign -
builtin regex engine
-
retval type hints
-
global/nonlocal
-
local variables optimization
-
unique integers
-
operator overloading support
-
yield support
-
clear memory leaks
- make closure pass by reference
-
f-string
-
async/await
-
x for x in [...]
-
nameless function
-
libffi
-
JIT
-
encodings except utf-8/ucs2/ucs4
-
while/for - else
-
multiple inheritance
cmake is required, and a c99 compiler:
-
gcc 4.8+
-
clang 3.4+
-
vs2013+
mkdir build
cd build
cmake ..
make (Linux/Mac/Mingw)
Open pylite.sln and build. (Visual Studio)
hello.py
print('Hello World!')
shell:
pylite hello.py
No REPL yet.
- Zlib