From 0884afe16263a110597671f60dcb4ff7df66f456 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 12 Apr 2015 17:49:58 +0200 Subject: Add example for non greedy short form tokens from corresponding use case --- .../math_non_greedy_var.in.osml | 4 ++++ .../math_non_greedy_var.out.osxml | 24 ++++++++++++++++++++++ .../user_defined_syntax/ontologies/math.osml | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 testdata/integration/user_defined_syntax/math_non_greedy_var.in.osml create mode 100644 testdata/integration/user_defined_syntax/math_non_greedy_var.out.osxml (limited to 'testdata') 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 @@ + + + + + + + a + + 2 + + + b + + 2 + + + c + + 2 + + + + + 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] -- cgit v1.2.3