Cup working with flex. Addition grammar functional.