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.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cli/context.cxx (limited to 'cli/context.cxx') diff --git a/cli/context.cxx b/cli/context.cxx new file mode 100644 index 0000000..3c62e38 --- /dev/null +++ b/cli/context.cxx @@ -0,0 +1,20 @@ +// file : cli/context.cxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include "context.hxx" + +context:: +context (std::ostream& os_) + : data_ (new (shared) data), + os (os_) +{ +} + +context:: +context (context& c) + : data_ (c.data_), + os (c.os) +{ +} -- cgit