From 4f9022f24c4591391637121c7274d9855b37bd93 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 May 2012 11:09:13 +0200 Subject: Add support for options file inclusion New include-path prefixes, c++: and cli:, are now recognized (e.g., include ;). 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. --- tests/parser/base.cli | 0 tests/parser/common.cli | 1 + tests/parser/test-001.cli | 2 ++ 3 files changed, 3 insertions(+) create mode 100644 tests/parser/base.cli create mode 100644 tests/parser/common.cli (limited to 'tests/parser') diff --git a/tests/parser/base.cli b/tests/parser/base.cli new file mode 100644 index 0000000..e69de29 diff --git a/tests/parser/common.cli b/tests/parser/common.cli new file mode 100644 index 0000000..c0c7262 --- /dev/null +++ b/tests/parser/common.cli @@ -0,0 +1 @@ +include "base.cli"; 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 ; include "types.hxx"; +include "common.cli"; +include "../parser/base.cli"; -- cgit v1.1