- Timestamp:
- Jul 26, 2024, 2:19:37 PM (5 months ago)
- Branches:
- master
- Children:
- fcbb532
- Parents:
- fd4df379
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rfd4df379 rdaa4cc1 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 15:19:32202413 // Update Count : 673 012 // Last Modified On : Fri Jul 26 14:09:30 2024 13 // Update Count : 6733 14 14 // 15 15 … … 1114 1114 argument_expression: 1115 1115 '?' // CFA, default parameter 1116 { SemanticError( yylloc, "Argument to default parameter is currently unimplemented." ); $$ = nullptr; }1117 // { $$ = new ExpressionNode( build_constantInteger(*new string( "2" ) ) ); }1116 // { SemanticError( yylloc, "Argument to default parameter is currently unimplemented." ); $$ = nullptr; } 1117 { $$ = new ExpressionNode( build_constantInteger( yylloc, *new string( "2" ) ) ); } 1118 1118 | '?' identifier '=' assignment_expression // CFA, keyword argument 1119 { SemanticError( yylloc, "keyword argument is currently unimplemented." ); $$ = nullptr; } 1119 // { SemanticError( yylloc, "keyword argument is currently unimplemented." ); $$ = nullptr; } 1120 { $$ = $4; } 1120 1121 | assignment_expression 1121 1122 ; … … 3547 3548 { $$ = DeclarationNode::newName( $1 ); } 3548 3549 | '?' identifier 3549 { SemanticError( yylloc, "keyword parameter is currently unimplemented." ); $$ = nullptr; } 3550 // { SemanticError( yylloc, "keyword parameter is currently unimplemented." ); $$ = nullptr; } 3551 { $$ = DeclarationNode::newName( $2 ); } 3550 3552 | '(' paren_identifier ')' // redundant parenthesis 3551 3553 { $$ = $2; }
Note: See TracChangeset
for help on using the changeset viewer.