From cb65012eb524eb57b00249f1dee0f245e947cda4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 13 Sep 2009 18:46:11 +0200 Subject: Use new path class, add context and generator classes Use cutl::fs::path instead of std::string in the semantic graph. Add context and generator stubs, to be filled next. Connect everything in the compiler driver. --- cli/context.hxx | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 cli/context.hxx (limited to 'cli/context.hxx') diff --git a/cli/context.hxx b/cli/context.hxx new file mode 100644 index 0000000..28b74eb --- /dev/null +++ b/cli/context.hxx @@ -0,0 +1,39 @@ +// file : cli/context.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef CLI_CONTEXT_HXX +#define CLI_CONTEXT_HXX + +#include + +#include + +#include "semantics.hxx" +#include "traversal.hxx" + +using std::endl; + +class context +{ +private: + struct data + { + }; + + cutl::shared_ptr data_; + +public: + std::ostream& os; + +public: + context (std::ostream& os_); + context (context& c); + +private: + context& + operator= (context const&); +}; + +#endif // CLI_CONTEXT_HXX -- cgit v1.1