Uses regex based tokenization patterns and simple parsing to convert a basic C++ code to Python.
- First 4 line should be in format: [#include, using namespace, , int main()]
- Increment / Decrement operators should be used independently and exclusively in a line.
- Use very simple lines of code only.
- Variables : Initialization or Declaration
- Assignment
- While Loop
- Printing
- endl
- Input : both integer and strings
- Comments
- Functions : with no arguments
- Continuous assignment
- Pointers
- Arrays
- Mulitple Declaration / Initialization
- Lexical Analyser
- Identifier Table