Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $ git clone git://github.com/yuya-takeyama/LisPHP.git
  2. $ cd LisPHP/
  3. $ ./bin/lis.php
  4. Welcome to REPL for LisPHP!
  5. Input your LisPHP code and press Ctrl+D to evaluate it.
  6.  
  7. lis.php > ['define', 'PI', 3.1415926535]
  8. NULL
  9. lis.php > ':PI'
  10. float(3.1415926535)
  11. lis.php > ['define', 'area', ['lambda', ['r'], ['*', ':r', ['*', ':r', ':PI']]]]
  12. NULL
  13. lis.php > ['area', 1]
  14. float(3.1415926535)
  15. lis.php > ['area', 3]
  16. float(28.2743338815)
Add Comment
Please, Sign In to add comment