Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ git clone git://github.com/yuya-takeyama/LisPHP.git
- $ cd LisPHP/
- $ ./bin/lis.php
- Welcome to REPL for LisPHP!
- Input your LisPHP code and press Ctrl+D to evaluate it.
- lis.php > ['define', 'PI', 3.1415926535]
- NULL
- lis.php > ':PI'
- float(3.1415926535)
- lis.php > ['define', 'area', ['lambda', ['r'], ['*', ':r', ['*', ':r', ':PI']]]]
- NULL
- lis.php > ['area', 1]
- float(3.1415926535)
- lis.php > ['area', 3]
- float(28.2743338815)
Add Comment
Please, Sign In to add comment