Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文函数式编程语言的探索 #661

Open
UltimatePea opened this issue Oct 24, 2021 · 1 comment
Open

中文函数式编程语言的探索 #661

UltimatePea opened this issue Oct 24, 2021 · 1 comment

Comments

@UltimatePea
Copy link

Inspired by wenyan, I made a functional programming language following the similar style, with mixfix operators, and a virtual execution environment. The language is called 豫言, and it can be accessed at https://github.com/yuyan-lang/yuyan.

The language 豫言 is intended to be a prototype model for a commercial programming language.

@sunxyz
Copy link

sunxyz commented Jul 25, 2022

Keywords can be redefined look https://github.com/sunxyz/rust-lisp

(
   (define 定义 define)
   (定义 定义函数 defun)
   (定义 显示 display)
   (定义 换行 newline)

   (定义函数 打印 (打印的字)
       (显示 打印的字)
       (换行)
   )
   
   (打印 '你好 中国')
)
=> '你好 中国'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants