djspiewak / parseback

A Scala implementation of parsing with derivatives
http://parseback.io
Apache License 2.0
197 stars 22 forks source link

Generalize whitespace consumption #15

Closed djspiewak closed 7 years ago

djspiewak commented 7 years ago

There are two current limitations in the whitespace support. First, and most importantly, it can only be defined to be something of the form .+, where . is any single-character pattern. Notably, this means that source comments (a common use-case) are impossible. Second, trailing whitespace is not handled.

Really, the current implementation is just for convenience in testing.