Example #1
0
def get_data_ll1(input_file) : 
  global graph, set_terminal, set_non_terminal, first_table, follow_table, root
  graph, set_terminal, set_non_terminal, first_table, follow_table, root = follow.get_data_follow(input_file)

  generate_LL1_parser_table()

  return graph, set_terminal, set_non_terminal, first_table, follow_table, LL1_table, root
Example #2
0
def get_data_follow(input_file) : 
  global graph, set_terminal, set_non_terminal, first_table, follow_table, root
  graph, set_terminal, set_non_terminal, first_table, follow_table, root = follow.get_data_follow(input_file)
Example #3
0
def get_data(input_file):
    global graph, set_terminal, set_non_terminal, first_table, root, follow_table, serial_productions
    graph, set_terminal, set_non_terminal, first_table, follow_table, root, serial_productions = follow.get_data_follow(
        input_file)