code for building programme from ABS syntax trees