Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a sudocode_pi.py in libs folder with initialise statement functionality only for converting pseudocode to python #19

Open
rahulkumaran opened this issue Dec 6, 2018 · 21 comments

Comments

@rahulkumaran
Copy link
Owner

Is your feature request related to a problem? Please describe.
Currently, the program converts only pseudocode to C only. Add a functionality for python too. Start with creating a file and then adding the initialise statement logic to convert into python code. Add necessary test files in the testifies directory.

@AR786
Copy link
Contributor

AR786 commented Dec 6, 2018

I would like to work on this issue

@rahulkumaran
Copy link
Owner Author

Go ahead @AR786

@siAyush
Copy link

siAyush commented Dec 6, 2018

I'm interested in this.And @AR786 can we work together.

@rahulkumaran
Copy link
Owner Author

@siAyush, this is only a small part of the python pseudocode conversion. I'll be raising more issues for various parts of pseudocode conversion in python. You can probably look at doing that.

@AR786
Copy link
Contributor

AR786 commented Dec 7, 2018

@rahulkumaran like in C we don't have simple variable declaration in python. For ex: int i,float a.... we directly have a=6 etc..
So in the sudocode, should the user always specify the value or we should write something for it separately ? Because we would have to make changes at a lot of places

@AR786
Copy link
Contributor

AR786 commented Dec 8, 2018

@rahulkumaran please reply

@rahulkumaran
Copy link
Owner Author

rahulkumaran commented Dec 8, 2018 via email

@AR786
Copy link
Contributor

AR786 commented Dec 8, 2018

I exactly did this. Just wanted to make sure.. thanks

@AR786
Copy link
Contributor

AR786 commented Dec 9, 2018

@rahulkumaran Done with sudocode..
But i am facing some problem in cleaner code.. for indentation whenever i encounter if or for i will give indentation but how should i go back when loop ends ? Because in python all block of if and for have separate indentation..
Any suggestions ?

@rahulkumaran
Copy link
Owner Author

Right. So make sure that cleaning takes place while being converted to code itself rather than doing after the entire code is generated

@AR786
Copy link
Contributor

AR786 commented Dec 9, 2018

Oh okay.. thank god we can do that :-)

@rahulkumaran
Copy link
Owner Author

@AR786, where are we on this? How much more time is it gonna take

@AR786
Copy link
Contributor

AR786 commented Dec 10, 2018

I am working on the indentation. My exams are going on so it's taking some time. But i will do it whatever deadline you give me.
So, when should i submit the code ?
I will do my best.

@rahulkumaran
Copy link
Owner Author

Would be great if you could send a PR by tomorrow

@AR786
Copy link
Contributor

AR786 commented Dec 10, 2018

Okay bhaiya. Can i send it by tomorrow evening ?

@AR786
Copy link
Contributor

AR786 commented Dec 11, 2018

i am done bhaiya. but along with sudocode_pi.py i have also changed the cleaner code and the main. so how should i add in in our folder. any particular way you want ?

@rahulkumaran
Copy link
Owner Author

Just send a PR now with all the changes. Will review it and get back to you if any changes are required!

@AR786
Copy link
Contributor

AR786 commented Dec 11, 2018

okay

@AR786 AR786 mentioned this issue Dec 11, 2018
@AR786
Copy link
Contributor

AR786 commented Dec 12, 2018

Hello bhaiya. I have sent another PR . is that fine ?

@AR786
Copy link
Contributor

AR786 commented Dec 12, 2018

@rahulkumaran ??

@AR786
Copy link
Contributor

AR786 commented Jan 4, 2019

@rahulkumaran when will we be given the next task??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants