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