summaryrefslogtreecommitdiff
path: root/cli/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-13 18:46:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-13 18:46:11 +0200
commitcb65012eb524eb57b00249f1dee0f245e947cda4 (patch)
tree9706e59d98f2208ec110d84a5aaef14e45b49542 /cli/context.cxx
parenta1686fdeabe24823225cfb4cf79646e12cf98b2c (diff)
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.
Diffstat (limited to 'cli/context.cxx')
-rw-r--r--cli/context.cxx20
1 files changed, 20 insertions, 0 deletions
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 <boris@codesynthesis.com>
+// 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)
+{
+}