We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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]
Empty strings and comments are parsed as an empty Array:
CodeBreaker.parse('') CodeBreaker.parse('# a comment') # => []