Lython programming language built on top of CPython
Project description
example lython code
def test(num)
for i in range(num) do
if i == 0 then
print("zero")
elif i % 2 == 1 then
print("odd")
else
print("even")
end # if else
end # for
end # def
test(10)
Note:
-
The indentation in the code above is just to make the code look pretty and has no effect on the parser.
-
you cant use
then
,do
,end
as name variable, function and class in lython.
github: guangrei/lython
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
programminglython-0.1.3.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for programminglython-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4806dc6cf7865646b95f3bbcef84a8cdd5a2676c54730ea6f78cd9bb02f25001 |
|
MD5 | 34f290417ebebef1f80436b91dc7d2ed |
|
BLAKE2b-256 | 090c5f3e2ad5bdc7a54f419e7ed066ff72ae27119e1234728ac9c07b81c0c890 |