Currently GPT + ChatGPT is limited in its ability to write grammatically correct V programs. It does an admirable job, but it nearly always needs additional corrections in order to make the output code execute properly. It may be helpful to simply help it by allowing it to grok the following BNF grammar from JetBrains: https://raw.githubusercontent.com/intellij-v/intellij-v/main/src/main/kotlin/org/vlang/lang/grammar/v.bnf