Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; (calc "1*2 + 3* 4")
- ; (calc "1*2+3*4")
- ; Pad each operator with spaces
- ; (calc "1 * 2 + 3 * 4")
- ; (+ (calc "1 * 2") (calc "3 * 4"))
- ; (+ (* (calc "1") (calc "2")) (* (calc "3") (calc "4")))
- ; (+ (* 1 2) (* 3 4))
- ; (eval (+ (* 1 2) (* 3 4)))
- ; 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement