tree-sitter-cmake/test/corpus/gen_exp.txt

144 lines
2.1 KiB
Plaintext
Raw Normal View History

2021-07-06 12:46:05 -04:00
=======================================
Unquoted generator expression [gen_exp]
=======================================
message($<>)
---
(source_file
(normal_command
(identifier)
(argument_list
(argument
(unquoted_argument
(gen_exp)
)
)
)
)
)
2021-07-06 12:46:05 -04:00
=====================================
Quoted generator expression [gen_exp]
=====================================
message("$<>")
---
(source_file
(normal_command
(identifier)
(argument_list
(argument
(quoted_argument
2021-07-06 12:46:05 -04:00
(quoted_element
(gen_exp)
)
)
)
)
)
)
2021-07-06 12:46:05 -04:00
=====================
No argument [gen_exp]
=====================
message($<ANGLE-R>)
---
(source_file
(normal_command
(identifier)
(argument_list
(argument
(unquoted_argument
2021-07-06 12:46:05 -04:00
(gen_exp
(argument
(unquoted_argument)
)
)
)
)
)
)
)
2021-07-06 12:46:05 -04:00
============================================
No argument with superfluous colon [gen_exp]
============================================
message($<ANGLE-R:>)
---
(source_file
(normal_command
(identifier)
(argument_list
(argument
(unquoted_argument
(gen_exp
(argument
(unquoted_argument)
)
)
)
)
)
)
)
2021-07-06 12:46:05 -04:00
======================
One argument [gen_exp]
======================
message($<BOOL:-NOTFOUND>)
---
(source_file
(normal_command
(identifier)
(argument_list
(argument
(unquoted_argument
2021-07-06 12:46:05 -04:00
(gen_exp
(argument
(unquoted_argument))
2021-07-06 12:46:05 -04:00
(argument
(unquoted_argument)
)
)
)
)
)
)
)
2021-07-06 12:46:05 -04:00
=======================
Two arguments [gen_exp]
=======================
message($<AND:TRUE,FALSE>)
---
(source_file
(normal_command
(identifier)
(argument_list
(argument
(unquoted_argument
(gen_exp
(argument
2021-07-06 12:46:05 -04:00
(unquoted_argument))
(argument
2021-07-06 12:46:05 -04:00
(unquoted_argument))
(argument
(unquoted_argument)
)
)
)
)
)
)
)