Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phel-lang/phel-lang
Phel is a functional programming language that transpiles to PHP. A Lisp dialect inspired by Clojure and Janet.
https://github.com/phel-lang/phel-lang
clojure functional-programming language lisp phel phel-lang php programming-language transpiler
Last synced: 5 days ago
JSON representation
Phel is a functional programming language that transpiles to PHP. A Lisp dialect inspired by Clojure and Janet.
- Host: GitHub
- URL: https://github.com/phel-lang/phel-lang
- Owner: phel-lang
- License: mit
- Created: 2020-04-19T20:44:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T12:40:33.000Z (6 months ago)
- Last Synced: 2024-05-20T08:59:13.795Z (6 months ago)
- Topics: clojure, functional-programming, language, lisp, phel, phel-lang, php, programming-language, transpiler
- Language: PHP
- Homepage: https://phel-lang.org
- Size: 4.19 MB
- Stars: 397
- Watchers: 12
- Forks: 20
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
[Phel](https://phel-lang.org/) is a functional programming language that transpiles to PHP.
It is a dialect of [Lisp](https://en.wikipedia.org/wiki/Lisp_(programming_language)) inspired by [Clojure](https://clojure.org/) and [Janet](https://janet-lang.org/).
#### Example
```clojure
# 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)
```## Documentation
The documentation for Phel can be found on the Phel's website: [https://phel-lang.org](https://phel-lang.org).
## Community
Feel free to ask questions and join discussions on the [Phel Gitter channel](https://gitter.im/phel-lang/community).
## Contribute
Please refer to [CONTRIBUTING.md](https://github.com/phel-lang/phel-lang/blob/main/.github/CONTRIBUTING.md) for information on how to contribute to Phel.