diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-28 10:00:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-28 10:00:37 +0100 |
commit | 5b769bbb457a0222b58b738a9b8be7a67e10dd34 (patch) | |
tree | ac3cf045267d33ca0a042cc306956aa87795abc9 /test-files/mds-kbdc/simplify-tree/valid/multiple_nothing_alternation_in_macro_call | |
parent | m + macro call alternation elimination (diff) | |
download | mds-5b769bbb457a0222b58b738a9b8be7a67e10dd34.tar.gz mds-5b769bbb457a0222b58b738a9b8be7a67e10dd34.tar.bz2 mds-5b769bbb457a0222b58b738a9b8be7a67e10dd34.tar.xz |
mds-kbdc: simplification of alternations
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test-files/mds-kbdc/simplify-tree/valid/multiple_nothing_alternation_in_macro_call')
-rw-r--r-- | test-files/mds-kbdc/simplify-tree/valid/multiple_nothing_alternation_in_macro_call | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/simplify-tree/valid/multiple_nothing_alternation_in_macro_call b/test-files/mds-kbdc/simplify-tree/valid/multiple_nothing_alternation_in_macro_call new file mode 100644 index 0000000..ef35cea --- /dev/null +++ b/test-files/mds-kbdc/simplify-tree/valid/multiple_nothing_alternation_in_macro_call @@ -0,0 +1,34 @@ +my_macro([1 . . . 2]) + +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments +# (string (@ 1 10-11) ‘1’) +# ) +# ) +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments nil) +# ) +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments nil) +# ) +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments nil) +# ) +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments +# (string (@ 1 18-19) ‘2’) +# ) +# ) +# :1:14–15: warning: multiple ‘.’ inside an alternation +# my_macro([1 . . . 2]) +# ^ +# :1:12–13: note: first ‘.’ was here +# my_macro([1 . . . 2]) +# ^ +# :1:16–17: warning: multiple ‘.’ inside an alternation +# my_macro([1 . . . 2]) +# ^ +# :1:12–13: note: first ‘.’ was here +# my_macro([1 . . . 2]) +# ^ + |