From 060ba0d890e5b4ae2ec348714a21bc88aa5bd52a Mon Sep 17 00:00:00 2001 From: Pawel Felcyn Date: Mon, 13 Nov 2023 15:02:07 +0100 Subject: [PATCH] add helpers --- my_helpers/fsa_description_helper.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 my_helpers/fsa_description_helper.py diff --git a/my_helpers/fsa_description_helper.py b/my_helpers/fsa_description_helper.py new file mode 100644 index 0000000..6ce2d40 --- /dev/null +++ b/my_helpers/fsa_description_helper.py @@ -0,0 +1,8 @@ +import os +alphabet = 'abcdefghijklmnopqrstuvwxyz ' +with open(os.path.join(os.path.dirname(__file__), 'fsa_description.arg'), 'w') as file: + for c in alphabet: + for i in range(0, 6): + file.write(f'{i}\t0\t{c}\n') + file.write(f'6\t6\t{c}\n') + file.write('6')