diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-01 00:10:23 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:28 +0200 |
commit | 7072de43741fa1ef20427ad9232c47ba26d65621 (patch) | |
tree | 4efd1a78821a0000c4c4d324692bf199aa4cb141 /testdata/osmlparser/user_defined_syntax.osml | |
parent | e921e0965257e69221e67070d7eadd8a2aeaae76 (diff) |
Add some test files for user defined syntax
Diffstat (limited to 'testdata/osmlparser/user_defined_syntax.osml')
-rw-r--r-- | testdata/osmlparser/user_defined_syntax.osml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/testdata/osmlparser/user_defined_syntax.osml b/testdata/osmlparser/user_defined_syntax.osml index 3d44c29..9bc80c7 100644 --- a/testdata/osmlparser/user_defined_syntax.osml +++ b/testdata/osmlparser/user_defined_syntax.osml @@ -1,7 +1,7 @@ \begin{document} -\ontology#article{ - \struct#article[root=true] +\ontology#book{ + \struct#book[root=true] \field \childRef[ref=section] \childRef[ref=paragraph] @@ -18,6 +18,8 @@ \field \childRef[ref=text] \childRef[ref=code] + \childRef[ref=speech] + \childRef[ref=thought] \struct#code \syntax \open{`} @@ -31,12 +33,15 @@ \fieldRef[ref=paragraph.$default] \struct#text[transparent=true] \primitive[type=string] + \struct#thought + \syntax + \short{--} } -\begin{article} +\begin{book} == This tests somewhat plays with user defined syntax == -As you can see, just the tiny `\\syntax` definitions above make writing documents +As you -- surely -- can see, just the tiny `\\syntax` definitions above make writing documents much easier. For instance, this is a new paragraph. @@ -52,7 +57,6 @@ definition of the paragraph structure. Did you notice how we started sections here? -Sections can be allowed to use Wiki-like syntax with only three lines of code. -\end{article} +Sections can be allowed to use Wiki-like syntax with only three lines of code. Awesome! +\end{book} \end{document} - |