summaryrefslogtreecommitdiff
path: root/modules/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp')
-rw-r--r--modules/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/modules/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp b/modules/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
new file mode 100644
index 00000000000..994c889a3f8
--- /dev/null
+++ b/modules/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
@@ -0,0 +1,45 @@
+// file : CCF/CompilerElements/Preprocessor.hpp
+// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
+// cvs-id : $Id$
+
+#ifndef CCF_COMPILER_ELEMENTS_PREPROCESSOR_HPP
+#define CCF_COMPILER_ELEMENTS_PREPROCESSOR_HPP
+
+#include <memory>
+#include <string>
+#include <set>
+
+#include "CCF/CompilerElements/TokenStream.hpp"
+#include "CCF/CompilerElements/PreprocessorToken.hpp"
+
+namespace CCF
+{
+ namespace CompilerElements
+ {
+ namespace CPP
+ {
+ typedef
+ std::set<std::string>
+ Symbols;
+
+ class Preprocessor : public TokenStream<Token>
+ {
+ public:
+ virtual
+ ~Preprocessor ();
+
+ Preprocessor (TokenStream<char>& is, Symbols const&);
+
+ virtual Token
+ next ();
+
+ private:
+ class PreprocessorImpl;
+
+ std::auto_ptr<PreprocessorImpl> impl_;
+ };
+ }
+ }
+}
+
+#endif // CCF_COMPILER_ELEMENTS_PREPROCESSOR_HPP