Beispiel #1
0
def p_seen_main(p):
    '''Seen_Main : '''
    # Main has no signature, parameters, or return type
    sem.fill_symbol_table_function(p[-3], [[], [], [], [], 0])
Beispiel #2
0
def p_seen_main(p):
    '''Seen_Main : '''
    # Main has no signature, parameters, or return type
    sem.fill_symbol_table_function(p[-3], [[], [], [], [], 0])
Beispiel #3
0
def p_seen_function(p):
    '''Seen_Function : '''
    sem.fill_symbol_table_function(
        p[-4], [[p[-5]], state.signature, state.f_param_list])
    state.f_param_list = []
    state.signature = []
Beispiel #4
0
def p_seen_function(p):
    '''Seen_Function : '''
    sem.fill_symbol_table_function(p[-4], [[p[-5]], state.signature, state.f_param_list])
    state.f_param_list = []
    state.signature = []