STRIPS algorithm in C using Bison and Flex