From 4974b4763bd60eb875f93a71dbe2fe82ecfed9fc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 5 Sep 2009 16:29:23 +0200 Subject: Add semantic graph and traversal mechanism The parser now builds the semantic graph. --- cli/semantics/class.cxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cli/semantics/class.cxx (limited to 'cli/semantics/class.cxx') diff --git a/cli/semantics/class.cxx b/cli/semantics/class.cxx new file mode 100644 index 0000000..baa056c --- /dev/null +++ b/cli/semantics/class.cxx @@ -0,0 +1,28 @@ +// file : cli/semantics/class.cxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include + +#include + +namespace semantics +{ + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + type_info ti (typeid (class_)); + ti.add_base (typeid (scope)); + insert (ti); + } + } init_; + } +} -- cgit v1.1