-
Notifications
You must be signed in to change notification settings - Fork 0
/
AST Visitor Interface.py
48 lines (33 loc) · 1.25 KB
/
AST Visitor Interface.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
class ASTVisitor:
def visit_expression_node(self, node):
raise NotImplementedError
def visit_binary_op_node(self, node):
raise NotImplementedError
def visit_unary_op_node(self, node):
raise NotImplementedError
def visit_if_node(self, node):
raise NotImplementedError
def visit_while_node(self, node):
raise NotImplementedError
def visit_for_node(self, node):
raise NotImplementedError
def visit_return_node(self, node):
raise NotImplementedError
def visit_variable_declaration_node(self, node):
raise NotImplementedError
def visit_function_declaration_node(self, node):
raise NotImplementedError
def visit_parameter_node(self, node):
raise NotImplementedError
def visit_function_call_node(self, node):
raise NotImplementedError
def visit_class_declaration_node(self, node):
raise NotImplementedError
def visit_method_declaration_node(self, node):
raise NotImplementedError
def visit_field_declaration_node(self, node):
raise NotImplementedError
def visit_assignment_node(self, node):
raise NotImplementedError
def visit_block_node(self, node):
raise NotImplementedError