summaryrefslogtreecommitdiff
path: root/support/pkgcheck/src/generate.pest.md
blob: 643fe5775070f74ef45878e4c558ee5d09728a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Some notes about gparser.pest

## COMMENT and WHITESPACE

The Pest book at https://pest.rs/book/grammars/syntax.html says:

> Many languages and text formats allow arbitrary whitespace and comments between logical tokens. 
> For instance, Rust considers 4+5 equivalent to 4 + 5 and 4 /* comment */ + 5.

> The optional rules WHITESPACE and COMMENT implement this behaviour. If either (or both) are defined, 
> they will be implicitly inserted at every sequence and between every repetition (except in atomic rules).


Therefore COMMENT and WHITESPACE are defined in `gparser.pest`.