implemented parsing functions for PDAs