warbo / plumb
An embedded language for defining functions
dev-master
2015-10-09 04:31 UTC
Requires
- warbo/core: dev-master
- warbo/easycheck: dev-master
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-27 10:16:13 UTC
README
= Plumb = Plumb is a domain-specific language for defining functions, embedded in PHP. == Syntax == Arrays are function abstractions. (Natural) numbers are de Bruijn indices. Commas denote (curried) function application, associating to the left. __(underscored parentheses) are for overriding the precedence of commas. All other constructs are treated as their PHP values. == Usage == Write your Plumb straight in your PHP; there's no need to wrap it in quotes or anything. To turn a Plumb definition into a PHP function, pass it to the `plumb` function.