Changeset c1b0b8f
- Timestamp:
- Jul 25, 2024, 4:57:59 PM (4 months ago)
- Branches:
- master
- Children:
- 3cb693c
- Parents:
- 151c8db
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r151c8db rc1b0b8f 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 25 1 0:56:31202413 // Update Count : 67 2712 // 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 | '@' identifier '=' assignment_expression // CFA, keyword argument871 { SemanticError( yylloc, "keyword argument is currently unimplemented." ); $$ = nullptr; }872 | assignment_expression873 ;874 875 854 field_name_list: // CFA, tuple field selector 876 855 field … … 1118 1097 constant_expression: 1119 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 1120 1121 ; 1121 1122 … … 3545 3546 identifier_at 3546 3547 { $$ = DeclarationNode::newName( $1 ); } 3547 | ' @' identifier3548 | '?' identifier 3548 3549 { SemanticError( yylloc, "keyword parameter is currently unimplemented." ); $$ = nullptr; } 3549 3550 | '(' paren_identifier ')' // redundant parenthesis
Note: See TracChangeset
for help on using the changeset viewer.