PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Fennel

Fennel

Fennel is a pl created in 2016 by Calvin Rose.

#409on PLDB 6Years Old 2.0kUsers
0Books 0Papers 207Repos

Lua Lisp Language


Example from the web:
;; Sample: read the state of the keyboard and move the player accordingly (local dirs {:up [0 -1] :down [0 1] :left [-1 0] :right [1 0]}) (each [key delta (pairs dirs)] (when (love.keyboard.isDown key) (let [[dx dy] delta [px py] player x (+ px (* dx player.speed dt)) y (+ py (* dy player.speed dt))] (: world :move player x y))))
Example from hello-world:
(print "Hello World")

Language features

Feature Supported Example Token
Integers
; -?\d+
Floats
; -?\d+\.\d+
Strings
"Hello world"
"
Print() Debugging print
Comments
; A comment
Line Comments
; A comment
;
Semantic Indentation ϴ
wxbasic.html · fennel.html · fasta-format.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com