Just like Simple.float where you have to handle negation yourself. The only difference is that you provide a two potential problems:
const float =<PROBLEM>(expecting: PROBLEM) =>(invalid: PROBLEM): Parser<PROBLEM, number> => { return number({ int: Ok((id: number) => id), hex: Err(invalid), octal: Err(invalid), binary: Err(invalid), float: Ok((id: number) => id), invalid: invalid, expecting: expecting, });};
Just like Simple.float where you have to handle negation yourself. The only difference is that you provide a two potential problems: