comparison libinterp/parse-tree/oct-parse.yy @ 30197:f692ecc135d6

* oct-parse.yy (colon_expr): Fix comments to match code.
author John W. Eaton <jwe@octave.org>
date Fri, 17 Sep 2021 16:13:16 -0400
parents cd6f7957c889
children c2c11605fa7a
comparison
equal deleted inserted replaced
30196:813b7827c5f8 30197:f692ecc135d6
906 906
907 $$ = parser.make_colon_expression ($1, $3); 907 $$ = parser.make_colon_expression ($1, $3);
908 908
909 if (! $$) 909 if (! $$)
910 { 910 {
911 // finish_colon_expression deleted $1 and $3. 911 // make_colon_expression deleted $1 and $3.
912 YYABORT; 912 YYABORT;
913 } 913 }
914 } 914 }
915 | oper_expr ':' oper_expr ':' oper_expr 915 | oper_expr ':' oper_expr ':' oper_expr
916 { 916 {
918 918
919 $$ = parser.make_colon_expression ($1, $5, $3); 919 $$ = parser.make_colon_expression ($1, $5, $3);
920 920
921 if (! $$) 921 if (! $$)
922 { 922 {
923 // finish_colon_expression deleted $1, $3, and $5. 923 // make_colon_expression deleted $1, $3, and $5.
924 YYABORT; 924 YYABORT;
925 } 925 }
926 } 926 }
927 ; 927 ;
928 928