You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to test whether output has been written to console?
should the token state and state both be dumped to console? Should there be extra, optional arguments to control that?
what's the best argument order?
First pass:
// b -> Parser e s (m t) a -> Parser e s (m t) a
function debug(message, parser) {
return seq2R(bind(getState, (s) => console.log("state for " + message + ": " + s)),
parser);
}
The text was updated successfully, but these errors were encountered:
Purpose: add some debugging output during parsing, without changing anything else.
Something like:
Questions:
console
?console
? Should there be extra, optional arguments to control that?First pass:
The text was updated successfully, but these errors were encountered: