Home
last modified time | relevance | path

Searched refs:RAISE_SYNTAX_ERROR (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Parser/pegen/
Dparse_string.c35 RAISE_SYNTAX_ERROR("invalid escape sequence \\%c", first_invalid_escape_char); in warn_invalid_escape_sequence()
203 RAISE_SYNTAX_ERROR("Format strings are only supported in Python 3.6 and greater"); in _PyPegen_parsestr()
256 RAISE_SYNTAX_ERROR( in _PyPegen_parsestr()
367 RAISE_SYNTAX_ERROR("f-string: empty expression not allowed"); in fstring_compile_expr()
484 RAISE_SYNTAX_ERROR("f-string: single '}' is not allowed"); in fstring_find_literal()
566 RAISE_SYNTAX_ERROR("f-string: expressions nested too deeply"); in fstring_find_expr()
593 RAISE_SYNTAX_ERROR( in fstring_find_expr()
640 RAISE_SYNTAX_ERROR("f-string: too many nested parenthesis"); in fstring_find_expr()
648 RAISE_SYNTAX_ERROR("f-string expression part cannot include '#'"); in fstring_find_expr()
679 RAISE_SYNTAX_ERROR("f-string: unmatched '%c'", ch); in fstring_find_expr()
[all …]
Dpegen.h156 #define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__) macro
216 return RAISE_SYNTAX_ERROR("%s only supported in Python 3.%i and greater", in INVALID_VERSION_CHECK()
296 return RAISE_SYNTAX_ERROR("invalid syntax"); in _RAISE_SYNTAX_ERROR_INVALID_TARGET()
Dpegen.c71 RAISE_SYNTAX_ERROR("with Barry as BDFL, use '<>' instead of '!='"); in _PyPegen_check_barry_as_flufl()
253 RAISE_SYNTAX_ERROR("(%s) %U", errtype, errstr); in raise_decode_error()
258 RAISE_SYNTAX_ERROR("(%s) unknown error", errtype); in raise_decode_error()
321 RAISE_SYNTAX_ERROR("EOF while scanning triple-quoted string literal"); in tokenizer_error()
324 RAISE_SYNTAX_ERROR("EOL while scanning string literal"); in tokenizer_error()
327 RAISE_SYNTAX_ERROR("unexpected EOF while parsing"); in tokenizer_error()
949 return RAISE_SYNTAX_ERROR("Underscores in numeric literals are only supported " in _PyPegen_number_token()
1129 RAISE_SYNTAX_ERROR("error at start before reading any input"); in _PyPegen_run_parser()
1132 RAISE_SYNTAX_ERROR("unexpected EOF while parsing"); in _PyPegen_run_parser()
1142 RAISE_SYNTAX_ERROR("invalid syntax"); in _PyPegen_run_parser()
[all …]
Dparse.c10843 _res = RAISE_SYNTAX_ERROR ( "You found it!" ); in atom_rule()
14425 … _res = RAISE_SYNTAX_ERROR ( "iterable argument unpacking follows keyword argument unpacking" ); in invalid_arguments_rule()
15214 _res = RAISE_SYNTAX_ERROR ( "non-default argument follows default argument" ); in invalid_parameters_rule()
15262 _res = RAISE_SYNTAX_ERROR ( "non-default argument follows default argument" ); in invalid_lambda_parameters_rule()
15306 _res = RAISE_SYNTAX_ERROR ( "named arguments must follow bare *" ); in invalid_star_etc_rule()
15336 _res = RAISE_SYNTAX_ERROR ( "bare * has associated type comment" ); in invalid_star_etc_rule()
15380 _res = RAISE_SYNTAX_ERROR ( "named arguments must follow bare *" ); in invalid_lambda_star_etc_rule()
15433 _res = RAISE_SYNTAX_ERROR ( "Cannot have two type comments on def" ); in invalid_double_type_comments_rule()
15619 … _res = RAISE_SYNTAX_ERROR ( "trailing comma not allowed without surrounding parentheses" ); in invalid_import_from_targets_rule()
/external/python/cpython3/Grammar/
Dpython.gram484 | '__peg_parser__' { RAISE_SYNTAX_ERROR("You found it!") }
623 …| args ',' '*' { RAISE_SYNTAX_ERROR("iterable argument unpacking follows keyword argument unpackin…
677 RAISE_SYNTAX_ERROR("non-default argument follows default argument") }
680 RAISE_SYNTAX_ERROR("non-default argument follows default argument") }
682 | '*' (')' | ',' (')' | '**')) { RAISE_SYNTAX_ERROR("named arguments must follow bare *") }
683 | '*' ',' TYPE_COMMENT { RAISE_SYNTAX_ERROR("bare * has associated type comment") }
685 | '*' (':' | ',' (':' | '**')) { RAISE_SYNTAX_ERROR("named arguments must follow bare *") }
688 RAISE_SYNTAX_ERROR("Cannot have two type comments on def") }
702 RAISE_SYNTAX_ERROR("trailing comma not allowed without surrounding parentheses") }