@@ -60,7 +60,7 @@ DEF_RULE(decorated, c(decorated), and(2), rule(decorators), rule(decorated_body)
6060DEF_RULE (decorated_body , nc , or (2 ), rule (classdef ), rule (funcdef ))
6161DEF_RULE (funcdef , c (funcdef ), blank | and (8 ), tok (KW_DEF ), tok (NAME ), tok (DEL_PAREN_OPEN ), opt_rule (typedargslist ), tok (DEL_PAREN_CLOSE ), opt_rule (funcdefrettype ), tok (DEL_COLON ), rule (suite ))
6262DEF_RULE (funcdefrettype , nc , ident | and (2 ), tok (DEL_MINUS_MORE ), rule (test ))
63- // TODO typedargslist lets through more than is allowed
63+ // note: typedargslist lets through more than is allowed, compiler does further checks
6464DEF_RULE (typedargslist , nc , list_with_end , rule (typedargslist_item ), tok (DEL_COMMA ))
6565DEF_RULE (typedargslist_item , nc , or (3 ), rule (typedargslist_name ), rule (typedargslist_star ), rule (typedargslist_dbl_star ))
6666DEF_RULE (typedargslist_name , nc , ident | and (3 ), tok (NAME ), opt_rule (typedargslist_colon ), opt_rule (typedargslist_equal ))
@@ -69,7 +69,7 @@ DEF_RULE(typedargslist_dbl_star, nc, and(3), tok(OP_DBL_STAR), tok(NAME), opt_ru
6969DEF_RULE (typedargslist_colon , nc , ident | and (2 ), tok (DEL_COLON ), rule (test ))
7070DEF_RULE (typedargslist_equal , nc , ident | and (2 ), tok (DEL_EQUAL ), rule (test ))
7171DEF_RULE (tfpdef , nc , and (2 ), tok (NAME ), opt_rule (typedargslist_colon ))
72- // TODO varargslist lets through more than is allowed
72+ // note: varargslist lets through more than is allowed, compiler does further checks
7373DEF_RULE (varargslist , nc , list_with_end , rule (varargslist_item ), tok (DEL_COMMA ))
7474DEF_RULE (varargslist_item , nc , or (3 ), rule (varargslist_name ), rule (varargslist_star ), rule (varargslist_dbl_star ))
7575DEF_RULE (varargslist_name , nc , ident | and (2 ), tok (NAME ), opt_rule (varargslist_equal ))
0 commit comments