With a lot of help from chatgpt,
claude.ai and notebooklm I created a conversion tool which reads a openscad file and convert it to a pythonscad file.
It's fully written in python and there are a few dependencies wich are easy to install with pip
for example
pip install lark
pip install pprintp
and maybe some others
usage:
python s2p.py design.scad design.py
It passes the first test. The lark definitions where the most difficult ones.
There will probably still some bugs :)
Maybe this tool will make the switch for the openscad designer to pythonscad easier