Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

p4p

< >

p4p is a programming language created in 2010.

#1729on PLDB 14Years Old
Download source code:
git clone https://github.com/shriram/p4p
Homepage · Source Code

an alternate syntax for Racket.


Example from the web:
defvar: m = 10 defvar: this-better-be-6 = add(1, 2, 3) defvar: this-better-be-0 = add() deffun: five() = 5 deffun: trpl(x) = add(x, x, x) deffun: g(a, b, c) = add(a, b, c) deffun: d/dx(f) = defvar: delta = 0.001 fun: (x) in: div(sub(f(add(x, delta)), f(x)), delta) deffun: fib(n) = if: numeq(n, 0) 1 elseif: numeq(n, 1) 1 else: add(fib(sub1(n)), fib(sub(n, 2)))

Language features

Feature Supported Example Token
Semantic Indentation ✓

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0