phel-lang/phel-lang

Phel是一种将代码转换为PHP的函数式编程语言


README

Phel logo

GitHub Build Status Scrutinizer Code Quality Scrutinizer Code Coverage Psalm Type-coverage Status Gitter

Phel是一种将代码转换为PHP的函数式编程语言。

它是受LispClojureJanet启发的Lisp方言。

示例

# Define a namespace
(ns my\example)

# Define a variable with name "my-name" and value "world"
(def my-name "world")

# Define a function with name "print-name" and one argument "your-name"
(defn print-name [your-name]
  (print "hello" your-name))

# Call the function
(print-name my-name)

文档

Phel的文档可以在Phel网站上找到:https://phel-lang.org

社区

请随时在Phel Gitter频道提问和加入讨论。

贡献

有关如何为Phel做出贡献的信息,请参阅CONTRIBUTING.md