I'm aware of the basic stack overflow problem with this and it has to be done on the heap. And further, this touches Automata Theory and Grammar Theory in computation which is exciting. I'm handling lists like it is done in a functional programming language like Haskell where the list is an N nested datastructure.
Will be thinking about this more, however, this was done to capture the basic structure of the problem, and I'll have to mess around with the above as well as function pointers and move the compute to the heap.
python3 parser.py test_files_decoder/gr.txt
python3 encoder.py test_files_encoder/gr_python.txt
docker build -t bencoder:latest -f Dockerfile .
docker run -it -p 8080:8080 bencoder:latest
curl -X GET http://localhost:8080/encode_file/
curl -X GET http://localhost:8080/decode_file/