-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.bml
More file actions
45 lines (42 loc) · 1.51 KB
/
Copy pathtest.bml
File metadata and controls
45 lines (42 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* BracesML: The freshly baked markup language
* Copyright (C) 2017 Sayan Dutta
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
/*
* @breif: this file is a test case for the bracesML
*/
bml_root version = "0.0.1" encoding = "utf-8" {
empty_node {} // Empty node
string_node { // A string node
"test string"
}
string_node_2 { // a second string node
"\"test\" string"
}
num_node { // A number test
frac_node { 10.10 } // Floating point decimal point number
int_node { 10 } // Integer decimal number
}
attr_node sAttr = "string attribute" iAttr = 10 rAttr = 10.10 { // A node with attributes
child_node_empty {} // empty child node
}
non_unique_node { 10 } // this should be available separately
non_unique_node { 20 } // this also should be a separate node
mixed_node { // test node mixing value and children
"test value"
child_node attr_test = "test attr" {}
}
}