From 2dce582bffb35fbac5d4d91edb1f4f4179bd39ea Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Wed, 10 Jun 2020 14:42:32 +0530 Subject: [PATCH 01/11] adding exception handling --- cplusplus/stroustrup.py | 106 +++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 56 deletions(-) diff --git a/cplusplus/stroustrup.py b/cplusplus/stroustrup.py index a9424db..95728f8 100644 --- a/cplusplus/stroustrup.py +++ b/cplusplus/stroustrup.py @@ -4,29 +4,12 @@ @author: vgadi """ - -""" a homage to bjarne stroustrup, the creator of the c++ language""" - import sys -""" -as the scriptIO library and the extract library are not in the original directory, we add the folders to the system path, so -that the interpreter can search for the files there -""" - sys.path.append('scriptIO') sys.path.append('extract') - -""" -importing the custom libraries -""" - import scriptIO import extract - -""" -importing to iterate over two lists simulateneously -""" import itertools @@ -34,45 +17,56 @@ class CPP: # default constructor def __init__(self, userLibraries = ['iostream'], filename = 'temp.py'): - """ the filename from where the python code is to be read """ - self.filename = filename - - """ the list of c++ libraries to be included """ - self.libraries = userLibraries - - """ an empty string for initializing cpp code """ - self.generatedCode = '' - - """ the extension of the file to be generated """ - self.extension = '.cpp' - - """ to add new lines """ - self.newline = '\n' - - """ an empty string for initializing the cpp libraries """ - self.libCode = '' - """ - the boilerplate syntax for a .cpp file - """ + try: + """ the filename from where the python code is to be read """ + self.filename = filename - # int main() - self.int_main = 'int main(void){' - - """ - as there is a difference in syntax between python and cpp, we have to - write some minor syntax by ourselves - """ - self.semicolon = ' ; ' - self.cout = 'cout << ' - self.starterCode = '' - self.endCode = 'return 0; \n}' - self.coutNewline = "cout << endl;" - - """ generating the code for including the libraries """ - self.__createLibraries__() - - """ including the libraries and also the int main(void) part """ - self.__createStarterCode__() + """ the list of c++ libraries to be included """ + self.libraries = userLibraries + + """ an empty string for initializing cpp code """ + self.generatedCode = '' + + """ the extension of the file to be generated """ + self.extension = '.cpp' + + """ to add new lines """ + self.newline = '\n' + + """ an empty string for initializing the cpp libraries """ + self.libCode = '' + """ + the boilerplate syntax for a .cpp file + """ + + # int main() + self.int_main = 'int main(void){' + + """ + as there is a difference in syntax between python and cpp, we have to + write some minor syntax by ourselves + """ + self.semicolon = ' ; ' + self.cout = 'cout << ' + self.starterCode = '' + self.endCode = 'return 0; \n}' + self.coutNewline = "cout << endl;" + + except: + print('An unexpected error occurred while creating the class object.') + raise + try: + """ generating the code for including the libraries """ + self.__createLibraries__() + except: + print("An unexpected error occurred while creating the libraries") + raise + + try: + """ including the libraries and also the int main(void) part """ + self.__createStarterCode__() + except: + print("An unexpected error occurred while creating the starter code.") """ creates the required include library syntax """ @@ -143,4 +137,4 @@ def write2File(self): self.generatedCode += self.endCode # create the required '.cpp' file from the generated code - scriptIO.createScript(extension = '.cpp', code = self.generatedCode, filename = 'temp') + scriptIO.createScript(extension = '.cpp', code = self.generatedCode) From d3c71782e69fd3c3e16845236bcd1ebdb21ce54f Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Wed, 10 Jun 2020 14:44:26 +0530 Subject: [PATCH 02/11] exception handling --- cplusplus/scriptIO/scriptIO.py | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/cplusplus/scriptIO/scriptIO.py b/cplusplus/scriptIO/scriptIO.py index 4f27d3a..1e12aed 100644 --- a/cplusplus/scriptIO/scriptIO.py +++ b/cplusplus/scriptIO/scriptIO.py @@ -5,6 +5,8 @@ @author: vgadi """ +import sys + """ reads a .py script @@ -12,16 +14,23 @@ 1) filename (string): the name of the file from which text to be extracted -returns: list of strings with newlines split as '\n' +returns: list of strings new lines split with '\n' """ def readScript(filename): - # open file to read - script = open(filename, 'r') - # read the file - script = script.read() - # convert the newlines into '\n' - script = script.split('\n') - return script + try: + # open file to read + script = open(filename, 'r') + # read the file + script = script.read() + # convert the newlines into '\n' + script = script.split('\n') + return script + except OSError as err: + print("OS error: {0}".format(err)) + raise + except: + print("Unexpected error: ", sys.exc_info()[0]) + raise """ @@ -36,7 +45,10 @@ def readScript(filename): returns: nothing """ def createScript(extension, code, filename = 'helloWorld'): - filename = filename + extension - writeFile = open(filename, 'w') + try: + filename = filename + extension + writeFile = open(filename, 'w') - writeFile = writeFile.write(code) + writeFile = writeFile.write(code) + except: + print("\nAn error occrred while writing to file.") From 55bb92e0650838e343723510f871b5953a470027 Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Wed, 10 Jun 2020 14:45:37 +0530 Subject: [PATCH 03/11] exception handling --- cplusplus/extract/extract.py | 42 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/cplusplus/extract/extract.py b/cplusplus/extract/extract.py index 031b977..4f8a5ec 100644 --- a/cplusplus/extract/extract.py +++ b/cplusplus/extract/extract.py @@ -20,23 +20,28 @@ def extractFromScript(text): keywords = [] texts = [] for line in text: + try: + """ + get value before the parentheses + """ + keyword = re.compile("(.*?)\s*\(") + keyword = keyword.match(line) + keyword = keyword.group(1) + keywords.append(keyword) - """ - get value before the parentheses - """ - keyword = re.compile("(.*?)\s*\(") - keyword = keyword.match(line) - keyword = keyword.group(1) - keywords.append(keyword) - - """ - get value in the parentheses - """ - text = re.compile(".*?\((.*?)\)") - text = text.match(line) - text = text.group(1) - texts.append(text) - + """ + get value in the parentheses + """ + text = re.compile(".*?\((.*?)\)") + text = text.match(line) + text = text.group(1) + texts.append(text) + + except: + keywords, texts = -1, -1 + print("An error occurred while applying regular expressions") + raise + return keywords, texts """ @@ -44,8 +49,3 @@ def extractFromScript(text): def comment(text): """ - -""" -keywords, texts = extractFromScript(script) -""" - \ No newline at end of file From a91d6f5bff8cdb6a269d2a194372d6b3c463a2d5 Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:28:08 +0530 Subject: [PATCH 04/11] adding comment handling capability --- cplusplus/stroustrup.py | 146 +++++++++++++++++++++++++++++----------- 1 file changed, 105 insertions(+), 41 deletions(-) diff --git a/cplusplus/stroustrup.py b/cplusplus/stroustrup.py index 95728f8..7a7c0b9 100644 --- a/cplusplus/stroustrup.py +++ b/cplusplus/stroustrup.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- """ Created on Tue Jun 9 19:18:49 2020 - @author: vgadi """ import sys @@ -16,16 +15,18 @@ class CPP: # default constructor - def __init__(self, userLibraries = ['iostream'], filename = 'temp.py'): + def __init__(self, user_libraries = ['iostream'], filename = 'temp.py'): try: + """ empty string which will contain the script read from the python file """ + self.script = '' """ the filename from where the python code is to be read """ self.filename = filename """ the list of c++ libraries to be included """ - self.libraries = userLibraries + self.libraries = user_libraries """ an empty string for initializing cpp code """ - self.generatedCode = '' + self.generated_code = '' """ the extension of the file to be generated """ self.extension = '.cpp' @@ -33,8 +34,11 @@ def __init__(self, userLibraries = ['iostream'], filename = 'temp.py'): """ to add new lines """ self.newline = '\n' + """ comments in python file """ + self.comments = '' + """ an empty string for initializing the cpp libraries """ - self.libCode = '' + self.lib_code = '' """ the boilerplate syntax for a .cpp file """ @@ -48,29 +52,30 @@ def __init__(self, userLibraries = ['iostream'], filename = 'temp.py'): """ self.semicolon = ' ; ' self.cout = 'cout << ' - self.starterCode = '' - self.endCode = 'return 0; \n}' - self.coutNewline = "cout << endl;" + self.starter_code = '' + self.end_code = 'return 0; \n}' + self.cout_newline = "cout << endl;" except: print('An unexpected error occurred while creating the class object.') raise try: """ generating the code for including the libraries """ - self.__createLibraries__() + self.__create_libraries__() except: print("An unexpected error occurred while creating the libraries") raise try: """ including the libraries and also the int main(void) part """ - self.__createStarterCode__() + self.__create_starter_code__() except: print("An unexpected error occurred while creating the starter code.") + """ stable """ """ creates the required include library syntax """ - def __createLibraries__(self): + def __create_libraries__(self): includes = [] text = '' # creates the syntax for each library that has to be included to be @@ -84,57 +89,116 @@ def __createLibraries__(self): # adds the library syntax to the actual cpp code for include in includes: - self.libCode += str(include) + self.lib_code += str(include) - self.libCode += self.newline - + self.lib_code += self.newline + """ stable """ """ creates the initial code for the cpp file """ - def __createStarterCode__(self): + def __create_starter_code__(self): """ adding 'using namespace std; ' and 'int main(void){' to the code """ - self.libCode = self.libCode + self.newline + 'using namespace std;' - self.libCode += self.newline + self.int_main - self.starterCode = self.libCode + self.newline - self.generatedCode = self.starterCode + self.lib_code = self.lib_code + self.newline + 'using namespace std;' + self.lib_code += self.newline + self.int_main + self.starter_code = self.lib_code + self.newline + self.generated_code = self.starter_code - + """ stable """ """ - generates the required cpp code, currently supports only print statements + generates the required cpp code, including comments transformed from python to c++ format + currently supports only print statements """ - def generateCode(self): + def generate_code(self): # reading the code written in the script - text = scriptIO.readScript(self.filename) + self.script = scriptIO.readScript(self.filename) + # extracting the comment and the code row indices + comment_row_indices, code_row_indices = extract.get_indices(self.script) + # stripping the script of comments + self.script, self.comments = extract.strip_comments(self.script) # extracting the keywords, and the texts from the code - keywords, texts = extract.extractFromScript(text) + keywords, texts = extract.clean_raw_code(self.script) + #def POC(self, keywords, texts, comments, comment_row_indices, code_row_indices): + code_iterator, comment_iterator = 0, 0 + #print(code_row_indices) + #print(comment_row_indices) + # length of the list containing the keyords + len_code = len(keywords) + #print(len_code) + # length of the list containing the comments + len_comments = len(self.comments) + #print(len_comments) + # add comments and code + while(code_iterator < len_code and comment_iterator < len_comments): + + # if the comment is going to be before the code + if (comment_row_indices[comment_iterator] < code_row_indices[code_iterator]): + # add comment to the generated code + self.generated_code += '//' + str(self.comments[comment_iterator])[1:] + # increment comment iterator + comment_iterator += 1 - # zipping the two lists so as to iterate over them simultaneously - for (keyword, text) in zip(keywords, texts): - # currently only support for print() - if str(keyword) == 'print': - - # add 'cout << ', the 'text' extracted, and the semicolon - self.generatedCode += self.cout + str(text) + self.semicolon - # add a newline both in the output of file, as per the .py file - # add a '\n' to increase the readibility the '.cpp' code - self.generatedCode += str(self.coutNewline) + self.newline + # if the code is going to before the comment + elif (code_row_indices[code_iterator] < comment_row_indices[comment_iterator]): + # if keyword is print + if keywords[code_iterator] == 'print': + # add code to the line + self.generated_code += self.cout + ' ' + str(texts[code_iterator]) + str(self.semicolon) + # increment code iterator + code_iterator += 1 + + + # if the code and comment is on the same line + elif(code_row_indices[code_iterator] == comment_row_indices[comment_iterator]): + if (keywords[code_iterator] == 'print'): + # add code and comments to the generated code + self.generated_code += self.cout + ' ' + str(texts[code_iterator]) + str(self.semicolon) + ' //' + str(self.comments[comment_iterator])[1:] + # increment code and comment iterator + code_iterator += 1 + comment_iterator += 1 - # add a '\n' to increase the readibility the '.cpp' code - self.generatedCode + self.newline + # add a newline to the generated code for readibility + self.generated_code += str(self.newline) + + # if code list is completed, add comments + while(comment_iterator < len_comments): + # add comments to the generated code + self.generated_code += '// ' + str(self.comments[comment_iterator])[1:] + # increment comment iterator + comment_iterator += 1 + # add newline to code for readability + self.generated_code += self.newline + + while(code_iterator < len_code): + if keywords[code_iterator] == 'print': + # add code to generated code + self.generated_code += self.cout + ' ' + str(texts[code_iterator]) + str(self.semicolon) + # increment code iterator + code_iterator += 1 + # add newline to code for readability + self.generated_code += str(self.newline) + + + """ stable """ """ write the generated code to a .cpp file """ def write2File(self): + try: + # to the generated code, add the ending lines of a .cpp file + self.generated_code += self.end_code - # to the generated code, add the ending lines of a .cpp file - self.generatedCode += self.endCode - - # create the required '.cpp' file from the generated code - scriptIO.createScript(extension = '.cpp', code = self.generatedCode) + # create the required '.cpp' file from the generated code + scriptIO.createScript(extension = '.cpp', code = self.generated_code) + + print("\n.cpp file sucessfully generated!") + + except: + + print("\nThere was an error while creating the file :(") From 78961b8cbf6e9db69afccddbebef6564dcc5bc1d Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:29:45 +0530 Subject: [PATCH 05/11] strip_comments() and get_indices() added --- cplusplus/scriptIO/scriptIO.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cplusplus/scriptIO/scriptIO.py b/cplusplus/scriptIO/scriptIO.py index 1e12aed..7a20dfa 100644 --- a/cplusplus/scriptIO/scriptIO.py +++ b/cplusplus/scriptIO/scriptIO.py @@ -6,7 +6,7 @@ """ import sys - +""" stable """ """ reads a .py script @@ -33,6 +33,7 @@ def readScript(filename): raise +""" stable """ """ creating the required file From c10c4ebcf5a55f935ad392956f3e288a9642b8c5 Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:30:31 +0530 Subject: [PATCH 06/11] Update scriptIO.py --- cplusplus/scriptIO/scriptIO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cplusplus/scriptIO/scriptIO.py b/cplusplus/scriptIO/scriptIO.py index 7a20dfa..59e5bcb 100644 --- a/cplusplus/scriptIO/scriptIO.py +++ b/cplusplus/scriptIO/scriptIO.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +""" -*- coding: utf-8 -*- """ """ Created on Tue Jun 9 20:49:09 2020 From d60fdaffc39adb486afbe21eafe8829e5941d9e1 Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:31:33 +0530 Subject: [PATCH 07/11] strip_comments() and get_indices() added --- cplusplus/extract/extract.py | 179 ++++++++++++++++++++++++++++++++--- 1 file changed, 165 insertions(+), 14 deletions(-) diff --git a/cplusplus/extract/extract.py b/cplusplus/extract/extract.py index 4f8a5ec..9396ad0 100644 --- a/cplusplus/extract/extract.py +++ b/cplusplus/extract/extract.py @@ -6,6 +6,9 @@ """ import re +import scriptIO + +""" stable """ """ gets the keywords (print etc), and the text within thr parentheses @@ -16,26 +19,34 @@ returns: keywords (list of strings), texts (list of strings) """ -def extractFromScript(text): +def clean_raw_code(text): keywords = [] texts = [] + for line in text: try: + + if str(line)[0] == '': + continue """ get value before the parentheses """ keyword = re.compile("(.*?)\s*\(") - keyword = keyword.match(line) - keyword = keyword.group(1) - keywords.append(keyword) - - """ - get value in the parentheses - """ - text = re.compile(".*?\((.*?)\)") - text = text.match(line) - text = text.group(1) - texts.append(text) + flag = re.search("(.*?)\s*\(", line) + if flag is None: + continue + else: + keyword = keyword.match(line) + keyword = keyword.group(1) + keywords.append(keyword) + + """ + get value in the parentheses + """ + text = re.compile(".*?\((.*?)\)") + text = text.match(line) + text = text.group(1) + texts.append(text) except: keywords, texts = -1, -1 @@ -44,8 +55,148 @@ def extractFromScript(text): return keywords, texts +""" stable """ +# returns whether comment exists or not and if yes the column number also +def comment_exists(text): + col = text.find('#') + if(col != -1): + return 1, col + else: + return 0, -1 + + +""" stable """ +""" returns the indices of the rows where code and / or comments are present""" + +def get_indices(script): + + codeRowIndices, commentRowIndices = [], [] + row = 0 + flag, col = 0, 0 + + for line in script: + row += 1 + flag, col = comment_exists(line) + + # check whether comment exists on the line + if(flag): + # add the row number to commentIndices + commentRowIndices.append(row) + if (col > 0): + codeRowIndices.append(row) + + # if line has an empty line + elif line == '': + continue + + else: + codeRowIndices.append(row) + + return commentRowIndices, codeRowIndices + + +""" stable """ +""" +removes the single line comments from the python script """ -removes the comments from the python script -def comment(text): +def strip_comments(script): + """ + initializing empty lists to get the comments, + and an empty string to store the comments + """ + comments = [] + comment = '' + row = 0 + # iterate over the script line by line + for line in script: + + row += 1 + # get single line comments + + if line.find('#') != -1: + + # get where the comment begins in the line + ind = line.find('#') + + + + # isolate commment from the line + comment = (str(line))[ind:] + + # append comment to the list of comments + comments.append(comment) + + + # replacing the comments in script with an empty string + def replaceCharacters(s, unwanted, input_char = ''): + # Iterate over the strings to be replaced + for elem in unwanted: + # Replace the string, does not do anything if `elem` not in `s` + s = s.replace(elem, input_char) + return s + + # call the function + script_new = [replaceCharacters(x, comments) for x in script] + + + # remove all the empty strings in the script_new + raw_code = list(filter(None, script_new)) + + return raw_code, comments + + +""" the code below is the proof of concept for converting python comments to cpp comments """ + +""" +filename = 'temp.py' +script = scriptIO.readScript(filename) +script = list(filter(None, script)) +commentRowIndices, codeRowIndices = get_indices(script) +commentRowIndices.append(-1) +codeRowIndices.append(-1) +raw_code, comments = stripComments(script) +keywords, texts = clean_raw_code(raw_code) +print(texts[0]) +print(str(comments[0])[1:]) +# +def POC(keywords, texts, comments, commentRowIndices, codeRowIndices): + codeIterator, commentIterator = 0, 0 + + len_code = len(keywords) + + len_comments = len(comments) + + while(codeIterator < len_code and commentIterator < len_comments): + if(codeRowIndices[codeIterator] == commentRowIndices[commentIterator]): + + print('print ' + str(texts[codeIterator]) + ' // ' + str(comments[commentIterator])[1:] + '\n') + codeIterator += 1 + commentIterator += 1 + + elif (codeRowIndices[codeIterator] > commentRowIndices[commentIterator]): + + print('// ' + str(comments[commentIterator])[1:] + '\n') + commentIterator += 1 + + elif (codeRowIndices[codeIterator] < commentRowIndices[commentIterator]): + + if keywords[codeIterator] == 'print': + print('print ' + str(texts[codeIterator]) + '\n') + codeIterator += 1 + + + while(commentIterator < len_comments): + print('// ' + str(comments[commentIterator])[1:] + '\n') + commentIterator += 1 + + while(codeIterator < len_code): + if keywords[codeIterator] == 'print': + print('print ' + str(texts[codeIterator]) + '\n') + codeIterator += 1 + + + +POC(keywords, texts, comments, commentRowIndices, codeRowIndices) + """ From e0100eac7ed431e090c80eca756dc128e2667479 Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:32:26 +0530 Subject: [PATCH 08/11] added comments --- cplusplus/temp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cplusplus/temp.py b/cplusplus/temp.py index 0086a15..a6e25d6 100644 --- a/cplusplus/temp.py +++ b/cplusplus/temp.py @@ -1,2 +1,3 @@ -print("Hello") -print("World") \ No newline at end of file +# This is a working model for converting python scripts to .cpp files +print("\nHello World!") # comment 1 +print("\nThis is Bhasha") # comment 2 From 07f2ac830eb4fe0d114fd743aa31d31f7c09353a Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:34:00 +0530 Subject: [PATCH 09/11] demonstration of comment handling functionality --- cplusplus/helloWorld.cpp | 9 +++++++++ cplusplus/temp.cpp | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 cplusplus/helloWorld.cpp delete mode 100644 cplusplus/temp.cpp diff --git a/cplusplus/helloWorld.cpp b/cplusplus/helloWorld.cpp new file mode 100644 index 0000000..e7f9109 --- /dev/null +++ b/cplusplus/helloWorld.cpp @@ -0,0 +1,9 @@ +#include + +using namespace std; +int main(void){ +// This is a working model for converting python scripts to .cpp files +cout << "\nHello World!" ; // comment 1 +cout << "\nThis is Bhasha" ; // comment 2 +return 0; +} diff --git a/cplusplus/temp.cpp b/cplusplus/temp.cpp deleted file mode 100644 index 2967524..0000000 --- a/cplusplus/temp.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include - -using namespace std; -int main(void){ -cout << "Hello" ; cout << endl; -cout << "World" ; cout << endl; -return 0; -} \ No newline at end of file From bbdcdc0cb282d0a96e682d127a5a097cb4ddb73b Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:36:59 +0530 Subject: [PATCH 10/11] Update README.md --- cplusplus/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cplusplus/README.md b/cplusplus/README.md index 2d51e55..275fa65 100644 --- a/cplusplus/README.md +++ b/cplusplus/README.md @@ -2,7 +2,7 @@ A library that that transforms python code into cpp code. -The 'temp.py' file metamorphosed into 'temp.cpp'. +The 'temp.py' file gets metamorphosed into 'temp.cpp'. ## Libraries created @@ -19,4 +19,4 @@ Taking the input and producing output of a script. Extracting text from the code. We get two lists of strings, one is a list of keywords ('print' etc), and a list of texts (the text enclosed in parentheses). -This is not a stable version as exception handling has not been implemented. +Currently, the code is being tested for bugs. From 9c261df77e941f321c4309dab25dbd204b57da4a Mon Sep 17 00:00:00 2001 From: Aditya Mandke <40426312+ekdnam@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:37:48 +0530 Subject: [PATCH 11/11] Update README.md --- cplusplus/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cplusplus/README.md b/cplusplus/README.md index 2d51e55..275fa65 100644 --- a/cplusplus/README.md +++ b/cplusplus/README.md @@ -2,7 +2,7 @@ A library that that transforms python code into cpp code. -The 'temp.py' file metamorphosed into 'temp.cpp'. +The 'temp.py' file gets metamorphosed into 'temp.cpp'. ## Libraries created @@ -19,4 +19,4 @@ Taking the input and producing output of a script. Extracting text from the code. We get two lists of strings, one is a list of keywords ('print' etc), and a list of texts (the text enclosed in parentheses). -This is not a stable version as exception handling has not been implemented. +Currently, the code is being tested for bugs.