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.hxx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 cli/semantics/class.hxx (limited to 'cli/semantics/class.hxx') diff --git a/cli/semantics/class.hxx b/cli/semantics/class.hxx new file mode 100644 index 0000000..1e6b59c --- /dev/null +++ b/cli/semantics/class.hxx @@ -0,0 +1,25 @@ +// file : cli/semantics/class.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef CLI_SEMANTICS_CLASS_HXX +#define CLI_SEMANTICS_CLASS_HXX + +#include + +namespace semantics +{ + class class_: public scope + { + protected: + friend class graph; + + class_ (path const& file, size_t line, size_t column) + : node (file, line, column) + { + } + }; +} + +#endif // CLI_SEMANTICS_CLASS_HXX -- cgit v1.1