Can generate the MainT.xml, but cannot generate the SquareT.xml nor SquareGameT.xml
I could generate the MainT.xml in the right format. However, the SquareT.xml has been generated in the wrong format as attached. The SquareGameT.xml file itself was generated but there was nothing in the file when I opened it in the web browser.
Re: Can generate the MainT.xml, but cannot generate the SquareT.xml nor SquareGameT.xml
This post was updated on .
>Your .xml file is all on a single line. You need to put in line breaks.
I added the new line by putting '\n' in the write function.
The error 'string index out of range' repeatedly occurred, so I inserted a new conditional branch (if len(xx)==0: continue). Then I got no more errors and the Tokenizer for the Square programs finally completed.