Changeset 46aa60e for src/Parser


Ignore:
Timestamp:
Feb 23, 2024, 11:41:10 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
0a9b5c1, 1e93617
Parents:
3d5a8cb (diff), 1761046 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Peter A. Buhr <pabuhr@…> (02/23/24 18:54:24)
git-committer:
Peter A. Buhr <pabuhr@…> (02/23/24 23:41:10)
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r3d5a8cb r46aa60e  
    10811081        | logical_OR_expression '?' comma_expression ':' conditional_expression
    10821082                { $$ = new ExpressionNode( build_cond( yylloc, $1, $3, $5 ) ); }
    1083                 // FIX ME: computes $1 twice
    10841083        | logical_OR_expression '?' /* empty */ ':' conditional_expression // GCC, omitted first operand
    1085                 { $$ = new ExpressionNode( build_cond( yylloc, $1, $1->clone(), $4 ) ); }
     1084                { $$ = new ExpressionNode( build_cond( yylloc, $1, nullptr, $4 ) ); }
    10861085        ;
    10871086
Note: See TracChangeset for help on using the changeset viewer.