Skip to main content

自制解释性语言

Project description

# Operator语言教程

Operator是一门只需要符号编辑的编程语言。

而,在Operator中只有两个变量,分别是m和n

结合以下标识符,就能完成一些操作。

`python '+' -> m+=1 '-' -> m-=1 '*' -> m*=n '/' -> m//=n '%' -> m%=n '^' -> m**=n '|' -> m=abs(m) '=' -> n=m '"' -> n=chr(m) '~' -> m,n=n,m ';' -> print(n,end='') ':' -> m=input() '[...]' -> for i in range(n):... '`...`' -> #... `

这是作者写的一串Hello World的代码 ` +++=-^+=-*"; .++=+++*=/+~^+";+++++++";; +++"; =/++~/=-----"; .+++=-^=+++*-"; .++=+++*=+*+"; =+++"; ------"; --------"; `

目前作者还在改进嵌套循环的代码,敬请期待~

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

operator-language-0.0.5.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

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