Skip to content

Commit

Permalink
fixed last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lupeterm committed Nov 2, 2020
1 parent 41fda6c commit 1f223e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cnf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def test_long_right_alternative(self):

def print_grammar(rules):
for key, value in rules.items():
print( key +' --> ' + value)
print( str(key) +' --> ' + str(value))
print("\n")


Expand Down
2 changes: 1 addition & 1 deletion tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def to_latex(table, word, start, rules, before):
def grammar_to_latex(rules):
table_string = ''
for key, values in rules.items():
table_string = table_string + key +' & \\rightarrow & '+values +' \\\ \n'
table_string = table_string + str(key) +' & \\rightarrow & '+str(values) +' \\\ \n'
table_string = table_string.replace("'", "")
table_string = table_string.replace(', ', ' \\mid ')
table_string = table_string.replace('}', '')
Expand Down

0 comments on commit 1f223e1

Please # to comment.