summaryrefslogtreecommitdiff
path: root/tests/test.pest
blob: 95d484e992dd85f741e5bd16392d91f9926929c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! 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" }