diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-12 17:49:58 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:24:16 +0200 |
commit | 0884afe16263a110597671f60dcb4ff7df66f456 (patch) | |
tree | b5f08a4c1d7e9b1369dc00771f4dde04926e3c97 /testdata/integration | |
parent | bed013e617130f7afd1f90ba57afc160b43c71df (diff) |
Add example for non greedy short form tokens from corresponding use case
Diffstat (limited to 'testdata/integration')
3 files changed, 30 insertions, 0 deletions
diff --git a/testdata/integration/user_defined_syntax/math_non_greedy_var.in.osml b/testdata/integration/user_defined_syntax/math_non_greedy_var.in.osml new file mode 100644 index 0000000..7d3bc3e --- /dev/null +++ b/testdata/integration/user_defined_syntax/math_non_greedy_var.in.osml @@ -0,0 +1,4 @@ +\import[ontology]{./ontologies/math} +\begin{math} + $a^2 + $b^2 = $c^2 +\end{math} diff --git a/testdata/integration/user_defined_syntax/math_non_greedy_var.out.osxml b/testdata/integration/user_defined_syntax/math_non_greedy_var.out.osxml new file mode 100644 index 0000000..fb62512 --- /dev/null +++ b/testdata/integration/user_defined_syntax/math_non_greedy_var.out.osxml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<document xmlns:math="math"> + <import rel="ontology" src="/home/andreas/source/ousia-src/testdata/integration/user_defined_syntax/ontologies/math.osml"/> + <math:math> + <math:equation> + <math:field> + <math:var>a</math:var> + <math:power> + <math:number>2</math:number> + </math:power> + <math:plus/> + <math:var>b</math:var> + <math:power> + <math:number>2</math:number> + </math:power> + <math:equals/> + <math:var>c</math:var> + <math:power> + <math:number>2</math:number> + </math:power> + </math:field> + </math:equation> + </math:math> +</document> diff --git a/testdata/integration/user_defined_syntax/ontologies/math.osml b/testdata/integration/user_defined_syntax/ontologies/math.osml index f10b6a2..c8f79d9 100644 --- a/testdata/integration/user_defined_syntax/ontologies/math.osml +++ b/testdata/integration/user_defined_syntax/ontologies/math.osml @@ -41,6 +41,8 @@ Variables and functions }% \struct#var[isa=primitive] + \syntax + \short[false]{$} \primitive#name[type=string] \struct#fun[isa=primitive] \primitive#name[subtree=true,type=string,optional=false] |