summaryrefslogtreecommitdiff
path: root/tests/test.pest
blob: c86a65ff2acef34e2fa848fbd5a923ad1d00c541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! A parser for JSON file.
//! And this is a example for JSON parser.
//!
//!     indent-4-space

/// Matches foo str, e.g.: `foo`
foo = { "foo" }

/// Matches bar str,
///   Indent 2, e.g: `bar` or `foobar`

bar = { "bar" | "foobar" }

bar1 = { "bar1" }

/// Matches dar

/// Match dar description

dar = { "da" }