This is the automatic parser I’ve written to generate C++ code from those loathsome broken C/C++.ino files also known as “Arduino Sketches”
This tool is not perfect, but allows me to turn Gamebuino games & Arduboy games to C++ and then to Pokitto relatively fast.
Better than doing things by hand - use with caution, no guarantees.