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/traversal/class.hxx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cli/traversal/class.hxx (limited to 'cli/traversal/class.hxx') diff --git a/cli/traversal/class.hxx b/cli/traversal/class.hxx new file mode 100644 index 0000000..d4610d9 --- /dev/null +++ b/cli/traversal/class.hxx @@ -0,0 +1,27 @@ +// file : cli/traversal/class.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef CLI_TRAVERSAL_CLASS_HXX +#define CLI_TRAVERSAL_CLASS_HXX + +#include +#include + +namespace traversal +{ + struct class_: scope_template + { + virtual void + traverse (type&); + + virtual void + pre (type&); + + virtual void + post (type&); + }; +} + +#endif // CLI_TRAVERSAL_CLASS_HXX -- cgit v1.1