parse functions definitions and functions calls