- Timestamp:
- Jul 25, 2024, 5:00:55 PM (5 months ago)
- Branches:
- master
- Children:
- fd4df379
- Parents:
- d02d223 (diff), c1b0b8f (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rd02d223 r3cb693c 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Jul 9 10:29:01202413 // Update Count : 67 1312 // Last Modified On : Thu Jul 25 15:19:32 2024 13 // Update Count : 6730 14 14 // 15 15 … … 852 852 ; 853 853 854 argument_expression_list_opt:855 // empty856 { $$ = nullptr; }857 | argument_expression_list858 ;859 860 argument_expression_list:861 argument_expression862 | argument_expression_list_opt ',' argument_expression863 { $$ = $1->set_last( $3 ); }864 ;865 866 argument_expression:867 '@' // CFA, default parameter868 { SemanticError( yylloc, "Default parameter for argument is currently unimplemented." ); $$ = nullptr; }869 // { $$ = new ExpressionNode( build_constantInteger( *new string( "2" ) ) ); }870 | assignment_expression871 ;872 873 854 field_name_list: // CFA, tuple field selector 874 855 field … … 1116 1097 constant_expression: 1117 1098 conditional_expression 1099 ; 1100 1101 argument_expression_list_opt: 1102 // empty 1103 { $$ = nullptr; } 1104 | argument_expression_list 1105 ; 1106 1107 argument_expression_list: 1108 argument_expression 1109 // | argument_expression_list_opt ',' argument_expression // CFA, allow empty argument 1110 | argument_expression_list ',' argument_expression // no empty argument 1111 { $$ = $1->set_last( $3 ); } 1112 ; 1113 1114 argument_expression: 1115 '?' // CFA, default parameter 1116 { SemanticError( yylloc, "Argument to default parameter is currently unimplemented." ); $$ = nullptr; } 1117 // { $$ = new ExpressionNode( build_constantInteger( *new string( "2" ) ) ); } 1118 | '?' identifier '=' assignment_expression // CFA, keyword argument 1119 { SemanticError( yylloc, "keyword argument is currently unimplemented." ); $$ = nullptr; } 1120 | assignment_expression 1118 1121 ; 1119 1122 … … 3543 3546 identifier_at 3544 3547 { $$ = DeclarationNode::newName( $1 ); } 3548 | '?' identifier 3549 { SemanticError( yylloc, "keyword parameter is currently unimplemented." ); $$ = nullptr; } 3545 3550 | '(' paren_identifier ')' // redundant parenthesis 3546 3551 { $$ = $2; }
Note: See TracChangeset
for help on using the changeset viewer.