Changes in src/Parser/parser.yy [daa4cc1:c1b0b8f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rdaa4cc1 rc1b0b8f 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 26 14:09:30202413 // Update Count : 673 312 // Last Modified On : Thu Jul 25 15:19:32 2024 13 // Update Count : 6730 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( yylloc,*new string( "2" ) ) ); }1116 { SemanticError( yylloc, "Argument to default parameter is currently unimplemented." ); $$ = nullptr; } 1117 // { $$ = new ExpressionNode( build_constantInteger( *new string( "2" ) ) ); } 1118 1118 | '?' identifier '=' assignment_expression // CFA, keyword argument 1119 // { SemanticError( yylloc, "keyword argument is currently unimplemented." ); $$ = nullptr; } 1120 { $$ = $4; } 1119 { SemanticError( yylloc, "keyword argument is currently unimplemented." ); $$ = nullptr; } 1121 1120 | assignment_expression 1122 1121 ; … … 3548 3547 { $$ = DeclarationNode::newName( $1 ); } 3549 3548 | '?' identifier 3550 // { SemanticError( yylloc, "keyword parameter is currently unimplemented." ); $$ = nullptr; } 3551 { $$ = DeclarationNode::newName( $2 ); } 3549 { SemanticError( yylloc, "keyword parameter is currently unimplemented." ); $$ = nullptr; } 3552 3550 | '(' paren_identifier ')' // redundant parenthesis 3553 3551 { $$ = $2; }
Note: See TracChangeset
for help on using the changeset viewer.