Add parse rule for function definitions
Updated grammar tests to handle multiple parse results