These are chat archives for CSE450-MSU/Raven

24th
Nov 2014
chelsea
@seadb
Nov 24 2014 16:17
What still needs to be done for recursive functions?
I can try to work on it
grotheju
@grotheju
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
chelsea
@seadb
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
chelsea
@seadb
Nov 24 2014 17:42
okay i pushed the changes, it starts on line 543 of tube7.y
chelsea
@seadb
Nov 24 2014 18:56
im not sure exactly where we need to be when we check though
grotheju
@grotheju
Nov 24 2014 19:46
What do you mean where we need to be?
grotheju
@grotheju
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?
chelsea
@seadb
Nov 24 2014 23:15
Yeah
But we need to translate it into assembly code
grotheju
@grotheju
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
Josh Curl
@joshwget
Nov 24 2014 23:36
How are recursive functions coming?
chelsea
@seadb
Nov 24 2014 23:59
I havent been working on it.