Changeset 332bd33


Ignore:
Timestamp:
Dec 12, 2019, 5:44:38 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
9853d9b0
Parents:
eb46fdf
Message:

add inclusive bound to singleton comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    reb46fdf r332bd33  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Dec 10 23:07:17 2019
    13 // Update Count     : 4400
     12// Last Modified On : Thu Dec 12 17:42:08 2019
     13// Update Count     : 4401
    1414//
    1515
     
    11971197                { $$ = forCtrl( $3, $1, new ExpressionNode( build_constantInteger( *new string( "0" ) ) ),
    11981198                                                OperKinds::LThan, $3->clone(), new ExpressionNode( build_constantInteger( *new string( "1" ) ) ) ); }
     1199        | comma_expression ';' '=' comma_expression                             // CFA
     1200                { $$ = forCtrl( $4, $1, new ExpressionNode( build_constantInteger( *new string( "0" ) ) ),
     1201                                                OperKinds::LEThan, $4->clone(), new ExpressionNode( build_constantInteger( *new string( "1" ) ) ) ); }
    11991202        | comma_expression ';' comma_expression inclexcl comma_expression // CFA
    12001203                { $$ = forCtrl( $3, $1, $3->clone(), $4, $5, new ExpressionNode( build_constantInteger( *new string( "1" ) ) ) ); }
Note: See TracChangeset for help on using the changeset viewer.