Implement parsing of conditional patterns