Braces are parsed as additional nested Arrays:
CodeBreaker.parse("1 + 3.5 * Rational(2,3) - Complex(1, 2)") # => [Fixnum, :+, Float, :*, Rational, :-, Complex] CodeBreaker.parse("((1 + 3.5) - Rational(2,3)) * Complex(1, 2)") # => [[[Fixnum, :+, Float], :-, Rational], :*, Complex]
There was an error while loading. Please reload this page.