Questions Columns Rows
GitHub icon

p4p

p4p - Programming language

< >

p4p is a programming language created in 2010.

Source code:
git clone https://github.com/shriram/p4p
#1223on PLDB 13Years Old

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 Token Example
Semantic Indentation

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Stats · Sponsor · Traffic · Traffic Today · Day 281 · feedback@pldb.com · Logout