/bracket-formatter

Simple bracket formatter for mathematics equations

Primary LanguageJava

Simple Bracket Formatter

Overview

  1. Formalize mathematics equations to bracket.
  2. Support Addition, Subtraction, Multiplication and Division.

Sample Input

  1. 1 + 2 - 3 + (1 + 3) == 6
  2. 1 / 2 / 3 / 4 * 5 * 6 + 7 + 8 * 9
  3. 1 - 2 - 3 * 4 + 5 / 6 - 7 * 8 + 9 == 6

Sample Output

  1. 1+2-3+(1+3)
  2. (1/2/3/4*5*6)+7+(8*9)
  3. 1-2-(3*4)+(5/6)-(7*8)+9