summaryrefslogtreecommitdiff
path: root/testdata/integration/user_defined_syntax/poem.osml
blob: 0c7b065e8fb8e1224d584bf62704ccc940a70ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
\ontology#poem{
	\struct#poem[root=true]
		\field
			\childRef[ref=stanza]
	\struct#stanza[transparent=true]
		\syntax
			\close{\paragraph}
		\field
			\childRef[ref=line]
			\childRef[ref=indentation]
	\struct#line[transparent=true]
		\syntax
			\close{\newline}
		\primitive[type=string]
	\struct#indentation
		\syntax
			\open{\indent}
			\close{\dedent}
		\field
			\childRef[ref=line]
			\childRef[ref=indentation]
}