DDFS parser and recursive function calls