summaryrefslogtreecommitdiff
path: root/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2007-03-18 22:23:37 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2007-03-18 22:23:37 +0000
commit06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch)
tree8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
parentd66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff)
downloadATCD-Static_RT_DAnCE.tar.gz
Diffstat (limited to 'CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp')
-rw-r--r--CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp b/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
new file mode 100644
index 00000000000..994c889a3f8
--- /dev/null
+++ b/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