A fork of Crisp for HARP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
395 B

  1. ;; Testing evaluation of arithmetic operations
  2. (+ 1 2)
  3. ;=>3
  4. (+ 5 (* 2 3))
  5. ;=>11
  6. (- (+ 5 (* 2 3)) 3)
  7. ;=>8
  8. (/ (- (+ 5 (* 2 3)) 3) 4)
  9. ;=>2
  10. (/ (- (+ 515 (* 222 311)) 302) 27)
  11. ;=>2565
  12. (abc 1 2 3)
  13. ; .*\'abc\' not found.*
  14. ;;
  15. ;; -------- Optional Functionality --------
  16. ;; Testing evaluation within collection literals
  17. [1 2 (+ 1 2)]
  18. ;=>[1 2 3]
  19. {"a" (+ 7 8)}
  20. ;=>{"a" 15}
  21. {:a (+ 7 8)}
  22. ;=>{:a 15}