From 1ab8801109128e05661cd819ebd681fb431d3129 Mon Sep 17 00:00:00 2001 From: misschloe287 <56130974+misschloe287@users.noreply.github.com> Date: Thu, 3 Oct 2019 20:16:54 +0100 Subject: [PATCH 1/3] hohoho to boobooboo --- hohoho/hohoho.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hohoho/hohoho.py b/hohoho/hohoho.py index 13681a9..dcdd480 100644 --- a/hohoho/hohoho.py +++ b/hohoho/hohoho.py @@ -1,7 +1,7 @@ import os from whitespace.cli import main -def hohoho_to_whitespace(file_name): +def boobooboo_to_whitespace(file_name): with open(file_name) as input_file: lines = input_file.readlines() @@ -9,9 +9,9 @@ def hohoho_to_whitespace(file_name): # Converts ' ' to '' # Converts 'snow' to ' ' for i in range(len(lines)): - lines[i] = lines[i].replace('hohoho', '\t') + lines[i] = lines[i].replace('boobooboo', '\t') lines[i] = lines[i].replace(' ', '') - lines[i] = lines[i].replace('snow', ' ') + lines[i] = lines[i].replace('spoopy', ' ') # Write the transpiled lines to a temp file and interpret that using the whitespace interpreter with open('output.ws', 'w') as f: From 98bdeb24ae2aa50b2180c51abaa8d8a35f842690 Mon Sep 17 00:00:00 2001 From: misschloe287 <56130974+misschloe287@users.noreply.github.com> Date: Thu, 3 Oct 2019 20:20:28 +0100 Subject: [PATCH 2/3] hohoho to boobooboo again --- hohoho/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hohoho/__init__.py b/hohoho/__init__.py index 2f45bc2..cd380e7 100644 --- a/hohoho/__init__.py +++ b/hohoho/__init__.py @@ -1,13 +1,13 @@ import argparse -from .hohoho import hohoho_to_whitespace -from .translator import whitespace_to_hohoho +from .hohoho import boobooboo_to_whitespace +from .translator import whitespace_to_boobooboo -parser = argparse.ArgumentParser(description='HoHoHo, the FESTIVE esolang! (powered by whitespace)', prog='hohoho') +parser = argparse.ArgumentParser(description='BooBooBoo, the FESTIVE esolang! (powered by whitespace)', prog='hohoho') parser.add_argument( 'file', metavar='input_file', type=str, - help='Input file. Should be a .ho file unless you\'re translating from whitespace to hohoho', + help='Input file. Should be a .ho file unless you\'re translating from whitespace to boobooboo', ) parser.add_argument( '--from-ws', @@ -15,7 +15,7 @@ action='store_const', const=True, default=False, - help='Translate an input whitespace file into a hohoho file.', + help='Translate an input whitespace file into a boobooboo file.', ) def main(): @@ -28,7 +28,7 @@ def main(): out_name = input_file.split('.')[0] + '.ho' whitespace_to_hohoho(input_file, out_name) else: - hohoho_to_whitespace(input_file) + boobooboo_to_whitespace(input_file) if __name__ == '__main__': main() From 8957b2700432363fe24817e545fe53e7e830e4f1 Mon Sep 17 00:00:00 2001 From: misschloe287 <56130974+misschloe287@users.noreply.github.com> Date: Thu, 3 Oct 2019 20:26:01 +0100 Subject: [PATCH 3/3] hohoho to boobooboo part 3 --- hohoho/translator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hohoho/translator.py b/hohoho/translator.py index 8cfe1fc..7a26cac 100644 --- a/hohoho/translator.py +++ b/hohoho/translator.py @@ -1,13 +1,13 @@ -def whitespace_to_hohoho(input_file_name,output_file_name): +def whitespace_to_boobooboo(input_file_name,output_file_name): with open(input_file_name) as input_file: lines = input_file.readlines() - # Converts 'hohoho' to \t + # Converts 'boobooboo' to \t # Converts ' ' to '' - # Converts 'ho' to ' ' + # Converts 'boo' to ' ' for i in range(len(lines)): - lines[i] = lines[i].replace(' ', 'snow ') - lines[i] = lines[i].replace('\t', 'hohoho ') + lines[i] = lines[i].replace(' ', 'spoopy ') + lines[i] = lines[i].replace('\t', 'boobooboo ') # Write the transpiled lines to a temp file and interpret that using the whitespace interpreter