Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Remove NOT in IfStatement with EmptyStatement (-s) #408

merged 1 commit into from Jun 5, 2012
Commits on Jun 5, 2012
  1. Remove NOT in IfStatement with EmptyStatement (-s)

    RGustBardon committed Jun 5, 2012
    If the only statement of a nonterminal IfStatement is a nonterminal
    EmptyStatement or a nonterminal IfStatement consists of two
    nonterminal EmptyStatement symbols, such a statement is transformed
    into a nonterminal ExpressionStatement that consists of a
    UnaryExpression with the logical NOT operator and the expression found
    in the nonterminal IfStatement.  The operator in question is
    This patch omits the negation by detecting the described case earlier.