Skip to content

zhaoyang97/pua-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pua-lang

PUA Programming Language written in Python.

Installation

git clone https://github.com/zhaoyang97/pua-lang.git
cd pua-lang
pip install .  # or "python setup.py install"

PUA-lang has been released on pypi. Install it by running ⬇️. (Examples won't be downloaded.

pip install pua-lang

Try pua-lang

pua docs\examples\斐波拉契.pua

Or copy the code below to main.pua

老板:
    张三 赋能 100
    李四 赋能 50
    打印(张三 差异 李四)

then run pua main.pua

You can try more examples in docs\examples

Write your own PUA code

pua-lang完全基于python,将python关键词替换为pua-lang中的关键词即可写出pua代码。pua-lang与python之间的关键词映射在keyword map表中。

Design your OWN programming language based on this repo

  1. Replace keyword map in src/config.py with your won dict
  2. Run pip install . # or "python setup.py install"
    Then you could program in your own language.
    试试精灵语/祖安语/符文/波吉语?

About

PUA Programming Language written in Python.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages