-
Notifications
You must be signed in to change notification settings - Fork 38
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
Comments
I would like to work on this issue |
Go ahead @AR786 |
I'm interested in this.And @AR786 can we work together. |
@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. |
@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.. |
@rahulkumaran please reply |
I would like it if you directly just allow someone to initialise a var with
a value. We can follow the current form of variable initialisation without
the `<optional_type>`, as the type really won't matter.
So we'll have to initialise the var as shown below for python code.
`Initialise a=1`
And in the code file, we should get something like what's shown below :
`a=1`
…On Sat, 8 Dec 2018, 14:51 Aditya Raj ***@***.*** wrote:
@rahulkumaran <https://github.com/rahulkumaran> please reply
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY_f29KzmeAtXQQb5m8EMxLnPcLnCckNks5u24SmgaJpZM4ZGAGL>
.
|
I exactly did this. Just wanted to make sure.. thanks |
@rahulkumaran Done with sudocode.. |
Right. So make sure that cleaning takes place while being converted to code itself rather than doing after the entire code is generated |
Oh okay.. thank god we can do that :-) |
@AR786, where are we on this? How much more time is it gonna take |
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. |
Would be great if you could send a PR by tomorrow |
Okay bhaiya. Can i send it by tomorrow evening ? |
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 ? |
Just send a PR now with all the changes. Will review it and get back to you if any changes are required! |
okay |
Hello bhaiya. I have sent another PR . is that fine ? |
@rahulkumaran when will we be given the next task?? |
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.The text was updated successfully, but these errors were encountered: