https://github.com/msvbg/props
A JavaScript DSL written with innocent abuse of ES6 proxies
https://github.com/msvbg/props
Last synced: about 1 year ago
JSON representation
A JavaScript DSL written with innocent abuse of ES6 proxies
- Host: GitHub
- URL: https://github.com/msvbg/props
- Owner: msvbg
- Created: 2015-03-09T08:15:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-09T08:19:09.000Z (about 11 years ago)
- Last Synced: 2025-04-26T08:45:03.190Z (about 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Props
> A pure functional, Turing-complete JavaScript DSL written with innocent abuse
of ES6 proxies, generators and other ES6 features that make the code harder to
read.
```js
import Props from 'Props';
let program = (new Props)
.let .x .$1 .plus .$2 .in
.let .y .$2 .in
.x .plus .y;
console.log(program(6, 3)) // => 12
```
## FAQ
### Is this legal?
Proxy abuse is currently legal in most states, with the notable exception of the
Republic of Nauru. Nauruans, please be careful.
### Is this fast?
Props uses the new quantum entanglement features of ES6 to achieve
faster-than-light speeds in ideal conditions. Big companies have been known to
use it for Big Data crunching.
## Usage
To run tests: `npm test`
Must be run with `node --harmony`. Proxies are not yet supported in browsers.
## License
MIT © [Martin Svanberg](http://martinsvanberg.com)