@duncan_lithgow Oh thanks very much. I was able to fix it. It was a logic error after all.
I have a huge codebase to maintain. Based on a very old CAD scripting langugae. So I thought: why not invest in tools first.
But i have no idea where this goes. Its my first parser grammar after all.