summaryrefslogtreecommitdiff
path: root/testdata/osmlparser/simple_book.osml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 20:47:07 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 20:47:07 +0100
commit4a4e2245730ead7fce354469fe626398520f12b2 (patch)
treeaf42dbf2fd9ea87884cd500367c4017293609863 /testdata/osmlparser/simple_book.osml
parent6de2c8ad9450a8b349161d37ad7cab538324034d (diff)
parent75eea3bdd846a34c69be3d09f41ff4fae706628e (diff)
using remote version of simple_book.osml
Diffstat (limited to 'testdata/osmlparser/simple_book.osml')
-rw-r--r--testdata/osmlparser/simple_book.osml54
1 files changed, 15 insertions, 39 deletions
diff --git a/testdata/osmlparser/simple_book.osml b/testdata/osmlparser/simple_book.osml
index e8639b8..21751b9 100644
--- a/testdata/osmlparser/simple_book.osml
+++ b/testdata/osmlparser/simple_book.osml
@@ -1,55 +1,31 @@
-%{
-This is just a simple document for toying around
-}%
-\import{../osxmlparser/book_domain.osxml}
-\import{../osxmlparser/headings_domain.osxml}
-
-% Define some local domain here
-\domain#stuff
- \import[rel=typesystem]{../osxmlparser/color.osxml}
- \import[rel=domain]{../osxmlparser/book_domain.osxml}
- \struct#fancy
- \primitive#myLittleColor[type=color]
- \parentRef[ref=book]
- \fieldRef[ref="$default"]
+\import[domain]{../osxmlparser/book_domain.osxml}
+\import[domain]{../osxmlparser/headings_domain.osxml}
+
+%\domain#stuff
+% \import[typesystem]{../osxmlparser/color.osxml}
+% \struct#fancy
+% \primitive#bla[type=color]
+% \parentRef[ref=book]
+% \fieldRef[ref=$default]
\begin{book}
This might be some introductory text or a dedication.
-\chapter#myFirstChapter
-\heading{My first chapter}
+\chapter#myFirstChapter{My first chapter}
Here we might have an introduction to the chapter.
\section#myFirstSection
\heading{A rather curious experiment}
+\paragraph{!Here we might find the actual section content.
+\heading{test}}
-\paragraph
+\section#mySndSection
Here we might find the actual section content.
-\paragraph
-Test
-\section#mySndSection
-Here we might find the actual section content.
+bla
-% Create a simple fancy instance
-\fancy{[10,g=10,b=10]}
-
-%{
-Note that this
- \fancy [10,g=10,b=10]
-will also work (since the braces are not counted as commands). However
- \fancy [t=10,g=10,b=10]
-will leave the fancy field empty and assign the data as string to the above
-paragraph.
-}%
-
-%{
-Another note: In the short term the behaviour of the "{" and "}" tokens should
-be changed in the parser. They should only be parsed when they are valid (after
-commands and after a closing field). This can easily be hacked in (albeit it
-will be ugly)
-}%
+%\fancy{aquamarine}
\end{book}