Loris1123 / RbScheme

Scheme Interpreter written in Ruby
Other
1 stars 0 forks source link

Allow multiple parameters for arithmetics #7

Closed Loris1123 closed 8 years ago

Loris1123 commented 8 years ago

+-*/ allow only 2 arguments

(+ 2 2)

Original scheme allows an undefine number of arguments.

(+ 1 2 3 4 5)

Current workaround:

(+ 1 (+ 2 (+ 3 (+ 4 5))))
Loris1123 commented 8 years ago

+, -, * are solved. / not yet. There are some special rules