summaryrefslogtreecommitdiff
path: root/testdata/integration/user_defined_syntax/wikilike.osml
blob: 694b8ee23114a371e1784893c60c5301a9a0fa5b (plain)
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
\ontology#book{
	\struct#book[root=true]
		\field
			\childRef[ref=section]
			\childRef[ref=paragraph]
	\struct#section
		\primitive#title[type=string,subtree=true]
			\syntax
				\open{==}
				\close{==}
		\field
			\childRef[ref=paragraph]
	\struct#paragraph[transparent=true]
		\syntax
			\close{\paragraph}
		\field
			\childRef[ref=text]
			\childRef[ref=code]
			\childRef[ref=speech]
			\childRef[ref=thought]
	\struct#code
		\syntax
			\open{`}
			\close{`}
		\field
			\childRef[ref=text]
	\struct#speech
		\syntax
			\open{<<}
			\close{>>}
		\fieldRef[ref=paragraph.$default]
	\struct#text[transparent=true]
		\primitive[type=string]
	\struct#thought
		\syntax
			\short{--}
}