Bla is a programming language created in 1994 by Wouter Van Oortmerssen.
#2111on PLDB | 30Years Old |
map(f,[]) = []
map(f,[h|t]) = [f(h)|map(f,t)]
qsort([],_) = []
qsort([h|t],lt) = append(qsort(filter(lambda(x) = lt(x,h),t),lt),
[h|qsort(filter(lambda(x) = not lt(x,h),t),lt)])
stack[T]() = self where
d = []
isempty() = d=[]
push(x:T) do d:=[x|d]
pop():T = d | [] -> nil -- raise stack_empty
| [h|t] -> h do d:=t
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | -- A comment | |
Line Comments | ✓ | -- A comment | -- |
Semantic Indentation | X |