2020-10-12 23:48:33 +02:00
|
|
|
Fennel is a programming language that brings together the speed,
|
|
|
|
simplicity, and reach of Lua with the flexibility of a lisp syntax and
|
|
|
|
macro system.
|
2019-08-24 02:53:40 +02:00
|
|
|
|
2020-10-12 23:48:33 +02:00
|
|
|
* Full Lua compatibilty: Easily call any Lua function or library from
|
|
|
|
Fennel and vice-versa.
|
|
|
|
* Zero overhead: Compiled code should be just as or more efficient
|
|
|
|
than hand-written Lua.
|
|
|
|
* Compile-time macros: Ship compiled code with no runtime dependency
|
|
|
|
on Fennel.
|
|
|
|
* Embeddable: Fennel is a one-file library as well as an
|
|
|
|
* executable. Embed it in other programs to support runtime
|
|
|
|
* extensibility and interactive development.
|
2019-08-24 02:53:40 +02:00
|
|
|
|
|
|
|
Anywhere you can run Lua code, you can run Fennel code.
|
|
|
|
|
2020-05-30 05:14:37 +02:00
|
|
|
This require one version of Lua installed (lua, lua52, lua53, luajit):
|
2019-08-24 02:53:40 +02:00
|
|
|
Default support for all versions of Lua installed before build.
|
2020-05-30 05:14:37 +02:00
|
|
|
To specify which Lua versions:
|
2020-10-12 23:48:33 +02:00
|
|
|
export LUAVER="vers"
|
|
|
|
|
|
|
|
"vers" must be one or more of "5.1 5.2 5.3 jit" in the right order
|
|
|
|
separated with space.
|
|
|
|
|
2020-05-30 05:14:37 +02:00
|
|
|
After installation there are one or more fennel executable files for the
|
|
|
|
equivalent versions of Lua.
|
2019-08-24 02:53:40 +02:00
|
|
|
|
2020-10-12 23:48:33 +02:00
|
|
|
To install compiled binary versions (experimental, only works with
|
|
|
|
lua5.2 or higher):
|
|
|
|
|
|
|
|
export BINARY=yes
|
2020-06-13 00:36:47 +02:00
|
|
|
|
2020-05-30 05:14:37 +02:00
|
|
|
Optional dependency:
|
2019-08-24 02:53:40 +02:00
|
|
|
* lua-readline
|
|
|
|
For history completion
|