I had this very error the other day and was confused for about a half hour. I had been testing Event Subs with typing "Sub" then Space, Tab and accidentally left a sub all by itself in the code. I switched to another module and was coding for a while then all of a sudden the code highlighting went nuts. It was doing strange stuff, so I thought there was some kind of glitch or B4A ran out of memory or something. When I restarted B4A all modules had code in red. I was freaking out thinking I had somehow corrupted my project file.
I then decide to compile just to see what would happen and got that error. I wasn't aware of the wiki, and it was actually opposite in my case, but knowing a stack is usually used in subs/functions for keeping and passing parameters I figured something was wrong with a sub and finally found my lonely sub line. The main thing I thought odd was how one module error caused highlighting issues in all modules. A better error would have said Error Parsing ModuleName instead of Program.