|
My compiler is stuck at the string assignment translation. I have a few doubts, please help clear these
x="abcdef"
should I check in the compiler's Let x = y statement to figure out whether I need to do String assignment and then emit code like below in python or java:
for i = 1 to (str -1)
codeWriter.writePush("push constant"+ str[0]
codeWriter.writeCall("call String.appendChar 1")
Please explain?
|