Home
last modified time | relevance | path

Searched refs:RAISE_SYNTAX_ERROR (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Parser/
H A Dstring_parser.c36 RAISE_SYNTAX_ERROR("invalid octal escape sequence '\\%.3s'", in warn_invalid_escape_sequence()
40 RAISE_SYNTAX_ERROR("invalid escape sequence '\\%c'", c); in warn_invalid_escape_sequence()
209 RAISE_SYNTAX_ERROR("Format strings are only supported in Python 3.6 and greater"); in _PyPegen_parsestr()
378 RAISE_SYNTAX_ERROR("f-string: expression required before '%c'", *expr_end); in fstring_compile_expr()
381 RAISE_SYNTAX_ERROR("f-string: empty expression not allowed"); in fstring_compile_expr()
505 RAISE_SYNTAX_ERROR("f-string: single '}' is not allowed"); in fstring_find_literal()
588 RAISE_SYNTAX_ERROR("f-string: expressions nested too deeply"); in fstring_find_expr()
615 RAISE_SYNTAX_ERROR( in fstring_find_expr()
662 RAISE_SYNTAX_ERROR("f-string: too many nested parenthesis"); in fstring_find_expr()
670 RAISE_SYNTAX_ERROR(" in fstring_find_expr()
[all...]
H A Dpegen_errors.c77 RAISE_SYNTAX_ERROR("unexpected EOF while parsing"); in _Pypegen_tokenizer_error()
133 RAISE_SYNTAX_ERROR("(%s) %U", errtype, errstr); in _Pypegen_raise_decode_error()
138 RAISE_SYNTAX_ERROR("(%s) unknown error", errtype); in _Pypegen_raise_decode_error()
420 RAISE_SYNTAX_ERROR("error at start before reading any input"); in _Pypegen_set_syntax_error()
427 RAISE_SYNTAX_ERROR("unexpected EOF while parsing"); in _Pypegen_set_syntax_error()
H A Dpegen.c387 RAISE_SYNTAX_ERROR("expected (%s)", expected); in _PyPegen_expect_forced_result()
647 return RAISE_SYNTAX_ERROR("Underscores in numeric literals are only supported " in _PyPegen_number_token()
842 return RAISE_SYNTAX_ERROR("incomplete input"); in _PyPegen_run_parser()
862 return RAISE_SYNTAX_ERROR("multiple statements found while compiling a single statement"); in _PyPegen_run_parser()
H A Dpegen.h177 #define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__) macro
276 return RAISE_SYNTAX_ERROR("%s only supported in Python 3.%i and greater", in INVALID_VERSION_CHECK()
H A Daction_helpers.c902 RAISE_SYNTAX_ERROR("cannot mix bytes and nonbytes literals"); in _PyPegen_concatenate_strings()
1050 RAISE_SYNTAX_ERROR("with Barry as BDFL, use '<>' instead of '!='"); in _PyPegen_check_barry_as_flufl()
1264 return RAISE_SYNTAX_ERROR(msg); in _PyPegen_arguments_parsing_error()
H A Dparser.c20523 _res = RAISE_SYNTAX_ERROR ( "bare * has associated type comment" ); in invalid_star_etc_rule()
21103 _res = RAISE_SYNTAX_ERROR ( "named arguments must follow bare *" ); in invalid_lambda_star_etc_rule()
21344 _res = RAISE_SYNTAX_ERROR ( "Cannot have two type comments on def" ); in invalid_double_type_comments_rule()
21580 _res = RAISE_SYNTAX_ERROR ( "trailing comma not allowed without surrounding parentheses" ); in invalid_import_from_targets_rule()
21636 _res = RAISE_SYNTAX_ERROR ( "expected ':'" ); in invalid_with_stmt_rule()
21680 _res = RAISE_SYNTAX_ERROR ( "expected ':'" ); in invalid_with_stmt_rule()
21878 _res = RAISE_SYNTAX_ERROR ( "expected 'except' or 'finally' block" ); in invalid_try_stmt_rule()
22076 _res = RAISE_SYNTAX_ERROR ( "expected ':'" ); in invalid_except_stmt_rule()
22103 _res = RAISE_SYNTAX_ERROR ( "expected ':'" ); in invalid_except_stmt_rule()
22133 _res = RAISE_SYNTAX_ERROR ( "expecte in invalid_except_stmt_rule()
[all...]

Completed in 38 milliseconds