diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-17 21:28:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-17 21:28:28 +0100 |
commit | a7fbfe615ac12b9258f57bf38bc35d81a1c24321 (patch) | |
tree | da7920c854f754fedff98709a443ac1a27bf2a94 /test-files/mds-kbdc/make-tree | |
parent | whitespace (diff) | |
download | mds-a7fbfe615ac12b9258f57bf38bc35d81a1c24321.tar.gz mds-a7fbfe615ac12b9258f57bf38bc35d81a1c24321.tar.bz2 mds-a7fbfe615ac12b9258f57bf38bc35d81a1c24321.tar.xz |
mds-kbdc: support alternations and dots in macro_calls
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test-files/mds-kbdc/make-tree')
-rw-r--r-- | test-files/mds-kbdc/make-tree/valid/alternated-macro_call | 20 | ||||
-rw-r--r-- | test-files/mds-kbdc/make-tree/valid/macro_call | 6 |
2 files changed, 26 insertions, 0 deletions
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)) +# ) +# ) |