diff options
Diffstat (limited to 'testdata/integration/user_defined_syntax')
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] |