46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
PYTHON_MAPPING = {
|
|
"for_loop": "for_statement",
|
|
"while_loop": "while_statement",
|
|
"if_statement": "if_statement",
|
|
"else_clause": "else_clause",
|
|
"elif_clause": "elif_clause",
|
|
"break": "break_statement",
|
|
"continue": "continue_statement",
|
|
"function_definition": "function_definition",
|
|
"return": "return_statement",
|
|
"try_except": "try_statement",
|
|
"with_statement": "with_statement",
|
|
"list_comprehension": "list_comprehension",
|
|
"list_literal": "list",
|
|
"dict_literal": "dictionary",
|
|
"set_literal": "set",
|
|
"f_string": "format_string",
|
|
"import": "import_statement",
|
|
"import_from": "import_from_statement",
|
|
"assignment": "assignment",
|
|
"class_definition": "class_definition",
|
|
"+": "+",
|
|
"-": "-",
|
|
"*": "*",
|
|
"/": "/",
|
|
"//": "//",
|
|
"%": "%",
|
|
"**": "**",
|
|
"+=": "+=",
|
|
"-=": "-=",
|
|
"*=": "*=",
|
|
"/=": "/=",
|
|
"%=": "%=",
|
|
"==": "==",
|
|
"!=": "!=",
|
|
">": ">",
|
|
">=": ">=",
|
|
"<": "<",
|
|
"<=": "<=",
|
|
"and": "and",
|
|
"or": "or",
|
|
"not": "not",
|
|
"&": "&",
|
|
"|": "|",
|
|
}
|