Variable getSourceConst

getSource: Simple.Parser<string> = A.getSource

Get the full string that is being parsed. You could use this to define getChompedString or mapChompedString if you wanted:

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);
};