Skip to content
  • Damien George's avatar
    py/parse: Optimise away parse node that's just parenthesis around expr. · 93b37262
    Damien George authored
    Before this patch, (x+y)*z would be parsed to a tree that contained a
    redundant identity parse node corresponding to the parenthesis.  With
    this patch such nodes are optimised away, which reduces memory
    requirements for expressions with parenthesis, and simplifies the
    compiler because it doesn't need to handle this identity case.
    
    A parenthesis parse node is still needed for tuples.
    93b37262