Preliminary parsing for ifs and functions