Lines Matching defs:literal

265                                    "literal characters");
441 Return 0 if we reached the end of the literal.
443 Return 1 if we haven't reached the end of the literal, but we want
444 the caller to process the literal up to this point. Used for
449 PyObject **literal, int recurse_lvl, Token *t)
451 /* Get any literal string. It ends when we hit an un-doubled left
459 assert(*literal == NULL);
478 followed by a "{". Just keep parsing this literal. This
493 /* We're going to tell the caller that the literal ends
522 *literal = PyUnicode_DecodeUTF8Stateful(literal_start,
527 *literal = decode_unicode_with_escapes(p, literal_start,
530 if (!*literal) {
852 Return 0 if we have a literal (possible zero length) and an
855 Return 1 if we have a literal, but no expression, and we want the
862 1. the literal 'a{' with no expression, and a return value
866 2. the literal 'b' and the expression '0', with a return value of
869 3. literal 'c' with no expression and a return value of 0. The
875 int recurse_lvl, PyObject **literal,
881 assert(*literal == NULL && *expression == NULL);
883 /* Get any literal string. */
884 result = fstring_find_literal(p, str, end, raw, literal, recurse_lvl, t);
892 /* We have a literal, but don't look at the expression. */
915 Py_CLEAR(*literal);
1084 /* Add a non-f-string (that is, a regular literal string). str is
1124 PyObject *literal = NULL;
1128 /* If there's a zero length literal in front of the
1129 expression, literal will be NULL. If we're at the end of
1133 &literal, &expr_text,
1139 /* Add the literal, if any. */
1140 if (literal && _PyPegen_FstringParser_ConcatAndDel(state, literal) < 0) {
1149 /* We've dealt with the literal and expr_text, their ownership has
1152 /* See if we should just loop around to get the next literal
1168 /* Convert the existing last_str literal to a Constant node. */