Ignore:
Timestamp:
Dec 12, 2019, 6:21:09 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:
0f4527d, 1469a8a
Parents:
332bd33
Message:

missed a case for inclusive bound to singleton comparison, and added tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r332bd33 r9853d9b0  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Dec 12 17:42:08 2019
    13 // Update Count     : 4401
     12// Last Modified On : Thu Dec 12 17:54:22 2019
     13// Update Count     : 4404
    1414//
    1515
     
    11901190                { $$ = forCtrl( $1, new string( DeclarationNode::anonymous.newName() ), new ExpressionNode( build_constantInteger( *new string( "0" ) ) ),
    11911191                                                OperKinds::LThan, $1->clone(), new ExpressionNode( build_constantInteger( *new string( "1" ) ) ) ); }
     1192        | '=' comma_expression                                                                  // CFA
     1193                { $$ = forCtrl( $2, new string( DeclarationNode::anonymous.newName() ), new ExpressionNode( build_constantInteger( *new string( "0" ) ) ),
     1194                                                OperKinds::LEThan, $2->clone(), new ExpressionNode( build_constantInteger( *new string( "1" ) ) ) ); }
    11921195        | comma_expression inclexcl comma_expression            // CFA
    11931196                { $$ = forCtrl( $1, new string( DeclarationNode::anonymous.newName() ), $1->clone(), $2, $3, new ExpressionNode( build_constantInteger( *new string( "1" ) ) ) ); }
Note: See TracChangeset for help on using the changeset viewer.