feat: add ast_checker mappings for Python3 and C
This commit is contained in:
39
ast_checker/mappings/c.py
Normal file
39
ast_checker/mappings/c.py
Normal file
@@ -0,0 +1,39 @@
|
||||
C_MAPPING = {
|
||||
"for_loop": "for_statement",
|
||||
"while_loop": "while_statement",
|
||||
"do_while": "do_statement",
|
||||
"if_statement": "if_statement",
|
||||
"else_clause": "else_clause",
|
||||
"break": "break_statement",
|
||||
"continue": "continue_statement",
|
||||
"function_definition": "function_definition",
|
||||
"return": "return_statement",
|
||||
"switch_statement": "switch_statement",
|
||||
"case_statement": "case_statement",
|
||||
"assignment": "assignment_expression",
|
||||
"struct": "struct_specifier",
|
||||
"include": "preproc_include",
|
||||
"+": "+",
|
||||
"-": "-",
|
||||
"*": "*",
|
||||
"/": "/",
|
||||
"%": "%",
|
||||
"+=": "+=",
|
||||
"-=": "-=",
|
||||
"*=": "*=",
|
||||
"/=": "/=",
|
||||
"%=": "%=",
|
||||
"==": "==",
|
||||
"!=": "!=",
|
||||
">": ">",
|
||||
">=": ">=",
|
||||
"<": "<",
|
||||
"<=": "<=",
|
||||
"and": "&&",
|
||||
"or": "||",
|
||||
"not": "!",
|
||||
"&": "&",
|
||||
"|": "|",
|
||||
"++": "++",
|
||||
"--": "--",
|
||||
}
|
||||
Reference in New Issue
Block a user