I have a grammar where I want to have some whitespace (including newlines) in between two terms. There should be some whitespace, i.e. it should fail if the two terms are touching, however there can be as much whitespace as desired. The issue I'm coming across is that whitespace and newlines are different tokens. I can't work out how to generally make "at least one" in nearley.
Nearley at least one
102 Views Asked by shmish111 At
2
If you are using
moo.js
, than you can predefine whitespace with regular expressions.