diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-10 11:09:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-05-10 11:09:13 +0200 |
commit | 4f9022f24c4591391637121c7274d9855b37bd93 (patch) | |
tree | 55d15cf4c092e28c588c31daf118cac7b4b5910a /tests/parser/test-001.cli | |
parent | 963eaef32dc1b35bd065de8b62d4c73a932208b2 (diff) | |
download | cli-4f9022f24c4591391637121c7274d9855b37bd93.tar.gz cli-4f9022f24c4591391637121c7274d9855b37bd93.tar.xz cli-4f9022f24c4591391637121c7274d9855b37bd93.zip |
Add support for options file inclusion
New include-path prefixes, c++: and cli:, are now recognized (e.g.,
include <cli:foo>;). Without a prefix, the include declarations is
considered to be c++-include unless the path ends with the .cli
extension.
The cli-included files are loaded and parsed. Currently, only inclusion
relative to the current file is supported. Duplicate inclusions are
detected and ignored based on the absolute filesystem path.
If a file cli-includes another file, then the runtime code is assumed
to come from the included file and is not generated.
Diffstat (limited to 'tests/parser/test-001.cli')
-rw-r--r-- | tests/parser/test-001.cli | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/parser/test-001.cli b/tests/parser/test-001.cli index 80233ff..473a238 100644 --- a/tests/parser/test-001.cli +++ b/tests/parser/test-001.cli @@ -2,3 +2,5 @@ // include <string>; include "types.hxx"; +include "common.cli"; +include "../parser/base.cli"; |