Parse zero or more ' ', '\n', and '\r' characters.
The implementation is pretty simple:
constspaces = chompWhile(c=>c === ' ' || c === '\n' || c === '\r')
So if you need something different (like tabs) just define an alternative with
the necessary tweaks! Check out lineComment and
multiComment for more complex situations.
Parse zero or more
' '
,'\n'
, and'\r'
characters. The implementation is pretty simple:So if you need something different (like tabs) just define an alternative with the necessary tweaks! Check out lineComment and multiComment for more complex situations.