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

Bel

Bel

Bel is a pl created in 2019 by Paul Graham.

#929on PLDB 3Years Old 0Books
0Papers


Example from the web:
; Bel in Bel. 9 October 2019, 9:14 GMT (def no (x) (id x nil)) (def atom (x) (no (id (type x) 'pair))) (def all (f xs) (if (no xs) t (f (car xs)) (all f (cdr xs)) nil)) (def some (f xs) (if (no xs) nil (f (car xs)) xs (some f (cdr xs)))) (def reduce (f xs) (if (no (cdr xs)) (car xs) (f (car xs) (reduce f (cdr xs))))) (def cons args (reduce join args)) (def append args (if (no (cdr args)) (car args) (no (car args)) (apply append (cdr args)) (cons (car (car args)) (apply append (cdr (car args)) (cdr args)))))

Language features

Feature Supported Example Token
Print() Debugging prn
Comments
; A comment
Line Comments
; A comment
;
Semantic Indentation ϴ
vhdl-ams.html · bel.html · blade.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