These are chat archives for
Sign in to start talking
Nov 24 2014 16:17
What still needs to be done for recursive functions?
I can try to work on it
Nov 24 2014 17:06
Honestly I've been thinking and don't know where to start. I think we'll have to implement a special scope for function definition so if we are in it and hit a function call, we would know
Nov 24 2014 17:29
i know how to check if we are in a function call
i put an example of how to do it in tube7.y, i'll push it right now
but you could theoretically do it anywhere inside the symbol_table
Nov 24 2014 17:42
okay i pushed the changes, it starts on line 543 of tube7.y
Nov 24 2014 18:56
im not sure exactly where we need to be when we check though
Nov 24 2014 19:46
What do you mean where we need to be?
Nov 24 2014 21:17
In symboltable.h theres the double vector mScopeInfo. Couldn't we just loop through that vector of the current scope?
Nov 24 2014 23:15
But we need to translate it into assembly code
Nov 24 2014 23:19
Yeah but its either going to be a scalar or array
So couldn't we just loop through and do ar_push or just push for scalar and then ar_pop and pop when we are done calling the function
Nov 24 2014 23:36
How are recursive functions coming?
Nov 24 2014 23:59
I havent been working on it.