Skip to content

I got bored of converting Python to Pseudocode, so I made this transpiler.

Notifications You must be signed in to change notification settings

abhishekshahane/PythonToPseudocode

Repository files navigation

PythonToPseudocode

I got bored of converting Python to Pseudocode, so I made this.

Some notes to be made

  1. This program can and will make mistakes, it is not meant to be a complete substitute for writing your pseudocode, but to make the process easier.
  2. docker.txt and out.txt are tests
  3. Unfortunately, doesn't yet add NEXT or ENDIF

How to use.

  1. Put your python code in docker.txt(Remember this only works for increments, print statements, for loops, if statements(AKA conditionals), while loops and initialising variables at the moment.)

  2. Next, luckily for you, we've made a CLI to make this process easier. Simply run cli.py --help to see a help message or to run, type cli.py --run [FILE], where [FILE] is your file(incase you wanted to migrate from make.py), and if those two commands don't work, simply run python [FILE].py and everything should work perfectly. Also, in case you were wondering, I used argparse to build that. Anyways, signing off on the project for now. Abhishek - 20/10/2020.

Exceptions

  1. Your python code has to run perfectly, otherwise the program will start glitching.

Enjoy!

About

I got bored of converting Python to Pseudocode, so I made this transpiler.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages