Open AyushKoul00 opened 3 months ago
These are all the files that have this issue:
fib.lox
fib2.lox
makeCounter.lox
recursiveFuncTest.lox
test3.lox
Its the same error:
"Can't read local variable in its own initializer."
Can you tell me how I can fix this?
Hi there @AyushKoul00 , It's been a long time and I don't remember exactly what state I left this little project in. I'm sorry, but I don't think I can give support for this. Best of luck playing with interpreters!
I see. No problem. But do you remember it working when u coded it? or can u just run it if possible to see if I am doing something wrong?
I cloned your code and followed the instructions to run the example files. I was able to run
classTest.lox
andclassTest2.lox
but when I runfib.lox
orfib2.lox
, I get errors. For example, when I runfib.lox
, I get these errors: