Const
Get the full string that is being parsed. You could use this to define getChompedString or mapChompedString if you wanted:
getChompedString
mapChompedString
const getChompedString = (parser: P.Parser<any>) => { return P.succeed( (from: number) => (to: number) => (str: string) => str.slice(from, to) ) .apply(P.getOffset) .skip(parser) .apply(P.getOffset) .apply(P.getSource);};
Get the full string that is being parsed. You could use this to define
getChompedString
ormapChompedString
if you wanted: