Expand description
Comments, and the rule that decides where one starts.
A comment starts at a # written where a line or a token starts and runs to
the end of the line. The parser never sees it: strip_comments replaces
every byte of every comment with a space before the document is parsed, so
the notation itself stays exactly as it was and a position reported by the
parser still points at the same character of the document the caller wrote.
Constants§
- COMMENT
- The character that opens a comment.
Functions§
- strip_
comments - Blanks out every comment in
document, keeping every other byte where it was.