What do you mean by "CPLEX grammar"? From your picture it seems you are trying to write an LP file? For LP file format your picture does not look correct. You can find a specification of LP file format here. Thinks like '+(-30pw_10_1_4)' have to be expanded to just '-30pw_10_1_4'.
A good way to validate your file is to read it into the interactive, write it out again to a different file and then check that the created file still looks as expected. Did you try something like that?
#CPLEXOptimizers#DecisionOptimization