Generalized logic, the parser uses a list of operation as input