Skip to content
Snippets Groups Projects
Commit e44d83cf authored by pompolic's avatar pompolic
Browse files

Remove more printing

parent bfb4b35d
No related branches found
No related tags found
No related merge requests found
...@@ -397,8 +397,10 @@ class TopLevelParse: ...@@ -397,8 +397,10 @@ class TopLevelParse:
self.ast_selected_stack = None self.ast_selected_stack = None
# TODO: get_avg_mem_use_all_arenas, get_total_mem_use # TODO: get_avg_mem_use_all_arenas, get_total_mem_use
# TODO: remove first printing loop
def print_input_chunk(self, token, rows, start, end): def print_input_chunk(self, token, rows, start, end):
print("print_input_chunk(): start: ", start, "end: ", end) #print("print_input_chunk(): start: ", start, "end: ", end)
#h = min(rows, len(token.children)) #h = min(rows, len(token.children))
tokenmap_values = list(self.input_token_map.values()) tokenmap_values = list(self.input_token_map.values())
#tokenmap_val_list = [token for token in list(self.input_token_map.values()) if (token['start'] <= start and token['start'] <= end)] #tokenmap_val_list = [token for token in list(self.input_token_map.values()) if (token['start'] <= start and token['start'] <= end)]
...@@ -406,7 +408,7 @@ class TopLevelParse: ...@@ -406,7 +408,7 @@ class TopLevelParse:
numrows = min(rows, len(tokenmap_val_list)) numrows = min(rows, len(tokenmap_val_list))
#row_lengths_for_columns = [len([token for token in list(tokenmap_values) if (token['start'] <= x and x >= token['end'])]) for x in range(start,end+1)] #row_lengths_for_columns = [len([token for token in list(tokenmap_values) if (token['start'] <= x and x >= token['end'])]) for x in range(start,end+1)]
#numrows = min(rows, max(row_lengths_for_columns)) #numrows = min(rows, max(row_lengths_for_columns))
print("numrows: ", numrows) #print("numrows: ", numrows)
h = numrows h = numrows
w = end-start w = end-start
if w == 0: if w == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment