Skip to main content

Xiaoyi 小易编程语言

Project description

小易中文编程语言

PyPI - Version star GitHub Repo stars

小易编程语言(xiaoyi)是简化版的 Python 中文编程语言,可编译成 Python 源码。

安装

pip install xiaoyi

发展

由于一些原因使得项目的进展异常的困难, 我可能不会积极改进这些费解的bug, 如果你愿意接受挑战,欢迎Fork

快速入门

更多文档请查看 docs 目录

如何运行或编译代码

cnlnr@xiaoxin ~> xiaoyi
小易中文编程语言 v0.1.2
用法:
    xiaoyi file.xy           直接运行
    xiaoyi file.xy file.py   编译成 Python 源码
源码:
    GitHub: https://github.com/cnlnr/xiaoyi
    Gitee:  https://gitee.com/LZY4/xiaoyi
cnlnr@xiaoxin ~ [1]> 

定义函数

问候():
    打印('你好')

定义类

打招呼:
    @静态方法
    问候(名字 = "世界"):
        打印(f'你好,{名字}')

打招呼.问候()

提示!可以使用 Meson ,make,ninja 来编译你的项目

Bug

  • 语法糖内的保留关键字无法是中文

  • exec 的代码不会自动转换成Python代码

  • 无法导入使用xy库,推荐使用编译

社区

点击链接加入腾讯频道【AI &小易编程语言社区 】:https://pd.qq.com/s/dvvy24tpn?b=9

赞助

点我捐赠

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

xiaoyi-0.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xiaoyi-0.1.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file xiaoyi-0.1.2.tar.gz.

File metadata

  • Download URL: xiaoyi-0.1.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xiaoyi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 07508d6204d72d647b8d1bf4b1c58a00099f3719f15c30aed2c11eeaf626ad8c
MD5 3a6768f2f75d203a0e95117378a44233
BLAKE2b-256 83893a684d015495fe4b1158918f21fc976dda44a4fcdecac43373b12400dd00

See more details on using hashes here.

File details

Details for the file xiaoyi-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: xiaoyi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xiaoyi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2463c8d455db715f270915307880db8f86ee662d8cf7e6da8c9bf664dabc4ea
MD5 b7339d52f67536beedda5df7fa2c22df
BLAKE2b-256 926e558634a723740ecf56466e365acdbf39fc9a1e0ece5f9743adcda4fe2e44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page