Implemented rest of logical operations translation
Added syntax error handling