diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-05 16:29:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-05 16:29:23 +0200 |
commit | 4974b4763bd60eb875f93a71dbe2fe82ecfed9fc (patch) | |
tree | 9353fb3fec3fa5f77f1faaf6da8185e3d006e7ba /cli/semantics/class.hxx | |
parent | e2299f6d95ba3264072d6ddc49f153ad73fd9d24 (diff) |
Add semantic graph and traversal mechanism
The parser now builds the semantic graph.
Diffstat (limited to 'cli/semantics/class.hxx')
-rw-r--r-- | cli/semantics/class.hxx | 25 |
1 files changed, 25 insertions, 0 deletions
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 <boris@codesynthesis.com> +// 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 <semantics/elements.hxx> + +namespace semantics +{ + class class_: public scope + { + protected: + friend class graph<node, edge>; + + class_ (path const& file, size_t line, size_t column) + : node (file, line, column) + { + } + }; +} + +#endif // CLI_SEMANTICS_CLASS_HXX |