Changeset 151c8db


Ignore:
Timestamp:
Jul 25, 2024, 11:30:49 AM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
c1b0b8f
Parents:
878b1385
Message:

parse keyword parameter and argument using '@' syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r878b1385 r151c8db  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul  9 10:29:01 2024
    13 // Update Count     : 6713
     12// Last Modified On : Thu Jul 25 10:56:31 2024
     13// Update Count     : 6727
    1414//
    1515
     
    868868                { SemanticError( yylloc, "Default parameter for argument is currently unimplemented." ); $$ = nullptr; }
    869869                // { $$ = new ExpressionNode( build_constantInteger( *new string( "2" ) ) ); }
     870        | '@' identifier '=' assignment_expression                      // CFA, keyword argument
     871                { SemanticError( yylloc, "keyword argument is currently unimplemented." ); $$ = nullptr; }
    870872        | assignment_expression
    871873        ;
     
    35433545        identifier_at
    35443546                { $$ = DeclarationNode::newName( $1 ); }
     3547        | '@' identifier
     3548                { SemanticError( yylloc, "keyword parameter is currently unimplemented." ); $$ = nullptr; }
    35453549        | '(' paren_identifier ')'                                                      // redundant parenthesis
    35463550                { $$ = $2; }
Note: See TracChangeset for help on using the changeset viewer.