diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-04 16:01:36 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-03-04 16:01:36 +0100 |
commit | c0103d1ca8fa787c213adfcc10e001028583d20a (patch) | |
tree | 032218b6e1a5bb07708a124f65cd000c4a0e8660 /testdata | |
parent | d30bd65ce9e2675ab1cf353da35fd673babb518a (diff) |
Added test for parsing syntax descriptions
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/osmlparser/syntax_description.osml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testdata/osmlparser/syntax_description.osml b/testdata/osmlparser/syntax_description.osml new file mode 100644 index 0000000..f374f73 --- /dev/null +++ b/testdata/osmlparser/syntax_description.osml @@ -0,0 +1,23 @@ +\ontology#a{ + \struct#b{ + \primitive#f1[subtree=true,type=string]{ + \syntax{ + \open{=} + \close{\newline} + \whitespace{preserve} + } + } + \field#f2{ + \syntax{ + \open{++} + \close{--} + \whitespace{collapse} + } + \childRef[ref=b] + } + \syntax{ + \short{~} + } + } +} + |