added functionality for parsing comparison expressions