Lines Matching refs:pns
335 mp_parse_node_struct_t *pns = (mp_parse_node_struct_t *)pn; in mp_parse_node_get_int_maybe() local
338 *o = (uint64_t)pns->nodes[0] | ((uint64_t)pns->nodes[1] << 32); in mp_parse_node_get_int_maybe()
340 *o = (mp_obj_t)pns->nodes[0]; in mp_parse_node_get_int_maybe()
356 mp_parse_node_struct_t *pns = (mp_parse_node_struct_t *)(*pn); in mp_parse_node_extract_list() local
357 if (MP_PARSE_NODE_STRUCT_KIND(pns) != pn_kind) { in mp_parse_node_extract_list()
361 *nodes = pns->nodes; in mp_parse_node_extract_list()
362 return MP_PARSE_NODE_STRUCT_NUM_NODES(pns); in mp_parse_node_extract_list()
401 mp_parse_node_struct_t *pns = (mp_parse_node_struct_t *)pn; in mp_parse_node_print() local
402 if (MP_PARSE_NODE_STRUCT_KIND(pns) == RULE_const_object) { in mp_parse_node_print()
404 …mp_printf(print, "literal const(%016llx)\n", (uint64_t)pns->nodes[0] | ((uint64_t)pns->nodes[1] <<… in mp_parse_node_print()
406 mp_printf(print, "literal const(%p)\n", (mp_obj_t)pns->nodes[0]); in mp_parse_node_print()
409 size_t n = MP_PARSE_NODE_STRUCT_NUM_NODES(pns); in mp_parse_node_print()
411 …) (n=%u)\n", rule_name_table[MP_PARSE_NODE_STRUCT_KIND(pns)], (uint)MP_PARSE_NODE_STRUCT_KIND(pns)… in mp_parse_node_print()
413 mp_printf(print, "rule(%u) (n=%u)\n", (uint)MP_PARSE_NODE_STRUCT_KIND(pns), (uint)n); in mp_parse_node_print()
416 mp_parse_node_print(print, pns->nodes[i], indent + 2); in mp_parse_node_print()