feat: add ast_checker mappings for Python3 and C
This commit is contained in:
45
ast_checker/mappings/python.py
Normal file
45
ast_checker/mappings/python.py
Normal file
@@ -0,0 +1,45 @@
|
||||
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",
|
||||
"&": "&",
|
||||
"|": "|",
|
||||
}
|
||||
Reference in New Issue
Block a user