From 6d52ac69e940a6be6c15c5c6f84a183bf56899c8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Jan 2016 15:41:53 +0200 Subject: Implement support for sourcing .cli files The idea is that the file is "read in" as if its content was copy-n-pasted. For example: "\h|Installation|" source "INSTALL.cli" // Also used to generate plain text INSTALL. Unlike include, source can appear anywhere in the file. --- doc/language.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/language.txt b/doc/language.txt index ce64abf..e6c9161 100644 --- a/doc/language.txt +++ b/doc/language.txt @@ -17,9 +17,13 @@ def-unit: include-decl-seq(opt) decl-seq(opt) include-decl-seq: + source-decl include-decl include-decl-seq include-decl +source-decl: + "source" cli-path-literal ";" + include-decl: "include" include-path ";" @@ -32,6 +36,7 @@ decl-seq: decl-seq decl decl: + source-decl scope-doc namespace-def class-def -- cgit v1.1