parsing expression to bval to bool