Added bool, range and segment parsing func

Change-Id: Iec5d79b13beac7348427429e39dd8c4388b34eb1