From a7fbfe615ac12b9258f57bf38bc35d81a1c24321 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Nov 2014 21:28:28 +0100 Subject: mds-kbdc: support alternations and dots in macro_calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .../mds-kbdc/make-tree/valid/alternated-macro_call | 20 ++++++++++++++++++++ test-files/mds-kbdc/make-tree/valid/macro_call | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 test-files/mds-kbdc/make-tree/valid/alternated-macro_call (limited to 'test-files/mds-kbdc/make-tree/valid') diff --git a/test-files/mds-kbdc/make-tree/valid/alternated-macro_call b/test-files/mds-kbdc/make-tree/valid/alternated-macro_call new file mode 100644 index 0000000..419fed9 --- /dev/null +++ b/test-files/mds-kbdc/make-tree/valid/alternated-macro_call @@ -0,0 +1,20 @@ +amac(["1" "2"] ["." .] "a") + +# (macro_call (@ 1 0-4) ‘amac’ +# (.arguments +# (alternation (@ 1 5-6) +# (.inner +# (string (@ 1 6-9) ‘"1"’) +# (string (@ 1 10-13) ‘"2"’) +# ) +# ) +# (alternation (@ 1 15-16) +# (.inner +# (string (@ 1 16-19) ‘"."’) +# (nothing (@ 1 20-21)) +# ) +# ) +# (string (@ 1 23-26) ‘"a"’) +# ) +# ) + diff --git a/test-files/mds-kbdc/make-tree/valid/macro_call b/test-files/mds-kbdc/make-tree/valid/macro_call index b1a1405..1e43d28 100644 --- a/test-files/mds-kbdc/make-tree/valid/macro_call +++ b/test-files/mds-kbdc/make-tree/valid/macro_call @@ -2,6 +2,7 @@ mac0() mac1(0) mac2(1 "a") mac3("x" "y" "z") +mac0(.) # (macro_call (@ 1 0-4) ‘mac0’ # (.arguments nil) @@ -24,4 +25,9 @@ mac3("x" "y" "z") # (string (@ 4 13-16) ‘"z"’) # ) # ) +# (macro_call (@ 5 0-4) ‘mac0’ +# (.arguments +# (nothing (@ 5 5-6)) +# ) +# ) -- cgit v1.2.3-70-g09d2