aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-28 08:54:40 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-28 08:54:40 +0100
commit39f19113d30e87c1604ed4e8e39ea95f87296767 (patch)
tree8ee097832aae5f7346eb51a12b7aabd2066aac20 /test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation
parentm (diff)
downloadmds-39f19113d30e87c1604ed4e8e39ea95f87296767.tar.gz
mds-39f19113d30e87c1604ed4e8e39ea95f87296767.tar.bz2
mds-39f19113d30e87c1604ed4e8e39ea95f87296767.tar.xz
m + macro call alternation elimination
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation59
-rw-r--r--test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation_with_nothing25
2 files changed, 84 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation b/test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation
new file mode 100644
index 0000000..0122c06
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation
@@ -0,0 +1,59 @@
+my_macro([1 2] [3 4] [5 6])
+
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 10-11) ‘1’)
+# (string (@ 1 16-17) ‘3’)
+# (string (@ 1 22-23) ‘5’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 10-11) ‘1’)
+# (string (@ 1 16-17) ‘3’)
+# (string (@ 1 24-25) ‘6’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 10-11) ‘1’)
+# (string (@ 1 18-19) ‘4’)
+# (string (@ 1 22-23) ‘5’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 10-11) ‘1’)
+# (string (@ 1 18-19) ‘4’)
+# (string (@ 1 24-25) ‘6’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 12-13) ‘2’)
+# (string (@ 1 16-17) ‘3’)
+# (string (@ 1 22-23) ‘5’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 12-13) ‘2’)
+# (string (@ 1 16-17) ‘3’)
+# (string (@ 1 24-25) ‘6’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 12-13) ‘2’)
+# (string (@ 1 18-19) ‘4’)
+# (string (@ 1 22-23) ‘5’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 12-13) ‘2’)
+# (string (@ 1 18-19) ‘4’)
+# (string (@ 1 24-25) ‘6’)
+# )
+# )
+
diff --git a/test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation_with_nothing b/test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation_with_nothing
new file mode 100644
index 0000000..0c7096e
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/valid/macro_call_alternation_with_nothing
@@ -0,0 +1,25 @@
+my_macro([1 2] [3 .])
+
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 10-11) ‘1’)
+# (string (@ 1 16-17) ‘3’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 10-11) ‘1’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 12-13) ‘2’)
+# (string (@ 1 16-17) ‘3’)
+# )
+# )
+# (macro_call (@ 1 0-8) ‘my_macro’
+# (.arguments
+# (string (@ 1 12-13) ‘2’)
+# )
+# )
+