Searched refs:_PyPegen_singleton_seq (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Grammar/ |
D | python.gram | 43 _PyPegen_seq_append_to_end(p, CHECK(_PyPegen_singleton_seq(p, a)), b) } 44 | '*' a=expression { _PyPegen_singleton_seq(p, a) } 45 | '**' a=expression { _PyPegen_singleton_seq(p, a) } 49 statement[asdl_seq*]: a=compound_stmt { _PyPegen_singleton_seq(p, a) } | simple_stmt 51 | a=compound_stmt NEWLINE { _PyPegen_singleton_seq(p, a) } 53 | NEWLINE { _PyPegen_singleton_seq(p, CHECK(_Py_Pass(EXTRA))) } 56 | a=small_stmt !';' NEWLINE { _PyPegen_singleton_seq(p, a) } # Not needed, there for speedup 139 | '*' { _PyPegen_singleton_seq(p, CHECK(_PyPegen_alias_for_star(p))) } 158 …| 'if' a=named_expression ':' b=block c=elif_stmt { _Py_If(a, b, CHECK(_PyPegen_singleton_seq(p, c… 161 …| 'elif' a=named_expression ':' b=block c=elif_stmt { _Py_If(a, b, CHECK(_PyPegen_singleton_seq(p,… [all …]
|
/external/python/cpython3/Parser/pegen/ |
D | pegen.h | 234 asdl_seq *_PyPegen_singleton_seq(Parser *, void *);
|
D | pegen.c | 1269 _PyPegen_singleton_seq(Parser *p, void *a) in _PyPegen_singleton_seq() function 1286 return _PyPegen_singleton_seq(p, a); in _PyPegen_seq_insert_in_front() 1307 return _PyPegen_singleton_seq(p, a); in _PyPegen_seq_append_to_end()
|
D | parse.c | 1088 … _res = _PyPegen_seq_append_to_end ( p , CHECK ( _PyPegen_singleton_seq ( p , a ) ) , b ); in type_expressions_rule() 1115 _res = _PyPegen_singleton_seq ( p , a ); in type_expressions_rule() 1142 _res = _PyPegen_singleton_seq ( p , a ); in type_expressions_rule() 1243 _res = _PyPegen_singleton_seq ( p , a ); in statement_rule() 1315 _res = _PyPegen_singleton_seq ( p , a ); in statement_newline_rule() 1367 _res = _PyPegen_singleton_seq ( p , CHECK ( _Py_Pass ( EXTRA ) ) ); in statement_newline_rule() 1437 _res = _PyPegen_singleton_seq ( p , a ); in simple_stmt_rule() 3228 _res = _PyPegen_singleton_seq ( p , CHECK ( _PyPegen_alias_for_star ( p ) ) ); in import_from_targets_rule() 3588 _res = _Py_If ( a , b , CHECK ( _PyPegen_singleton_seq ( p , c ) ) , EXTRA ); in if_stmt_rule() 3706 _res = _Py_If ( a , b , CHECK ( _PyPegen_singleton_seq ( p , c ) ) , EXTRA ); in elif_stmt_rule() [all …]
|