Use babylon to parse the patterns and handle them isntead of manually parsing them which leads to more fragile code