Ludii Forum
Maybe a section on Compiler problems - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Forum Problems (https://ludii.games/forums/forumdisplay.php?fid=9)
+--- Thread: Maybe a section on Compiler problems (/showthread.php?tid=287)



Maybe a section on Compiler problems - dale walton - 11-26-2020

The compiler very frequently gives me garbage hmtl, which is not very useful for debugging.

Once in a while I note a specific thing that caused this.  There could be a forum for collecting this kind of info, in hopes that one day the compiler can get better at giving debug info.
And in the meantime it would provide a list of thing to check for when one gets the html garbage error. even if one wouldn't know where in the program to look, it still could help some.

For example:

I had a script with "(sites Occupied)"  that gave garbage;
When I change it to (Sites Board) it compiled OK.

Does this mean that sometimes it is OK to use  (Sites Occupied) without and argument and sometimes it is not?
If so add notes to the documentation please.
If not, can the compiler note it as a syntax error?


RE: Maybe a section on Compiler problems - MatthewStephenson - 11-26-2020

Hi Dale,

Thanks for the suggestion, but we think that category may be too specific.
Please include these problems in the "Grammar" forum.

Cheers,
Matthew


RE: Maybe a section on Compiler problems - dale walton - 11-26-2020

And thanks to your team for improving the rate of hits on compiler errors with the newest release. I still got some trash html in the end, but it was a lot more helpful along the way.