Opened 4 weeks ago

Last modified 3 days ago

#3145 accepted enhancement

Reduce the number of parentheses produced by the expression formatter for infix forms

Reported by: gkronber Owned by: gkronber
Priority: medium Milestone: HeuristicLab 3.3.17
Component: Problems.DataAnalysis.Symbolic Version: trunk
Keywords: Cc:

Description (last modified by gkronber)

The formatter produces unnecessary parentheses for some expressions which makes the output harder to read than necessary.

Change History (5)

comment:1 Changed 4 weeks ago by gkronber

  • Owner set to gkronber
  • Status changed from new to accepted

comment:2 Changed 4 weeks ago by gkronber

  • Description modified (diff)
  • Summary changed from Reduce the number of parantheses produced by the expression formatter for infix forms to Reduce the number of parentheses produced by the expression formatter for infix forms

comment:3 Changed 4 weeks ago by gkronber

r18170: changed unit tests to check new expected output (unnecessary parenthesis removed) --> unit tests fail

comment:4 Changed 4 weeks ago by gkronber

r18172: removed unnecessary parenthesis in InfixExpressionFormatter (and adapted the unit tests slightly)

comment:5 Changed 3 days ago by gkronber

r18203: fixed a bug in the infix formatter introduced in my earlier commit

Note: See TracTickets for help on using tickets.