esmolanka / sexp-grammar

Invertible parsing for S-expressions
33 stars 4 forks source link

Introduce datum comments #25

Closed esmolanka closed 2 years ago

esmolanka commented 2 years ago

Introduces datum comments #;.

The following list:

(three #;(not four) element list)

Is parsed as:

(three element list)

Partially fixes #24 -- attn. @lortabac

lortabac commented 2 years ago

Thanks, you were quicker than me! I have a half PR but didn't have the time to finalize it. Luckily the implementation doesn't look too complicated.