summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/GrammarUtil.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-08 23:00:04 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-08 23:00:04 +0000
commitb6d77023ad984fb88e01f2c4a12a30827a28c1c7 (patch)
tree31cb6ffb9787430b76262e5a73776c2eb52ba03b /cpp/src/Slice/GrammarUtil.h
parentIce::Object now inherits virtually from IceUtil::Shared in order to allow (diff)
downloadice-b6d77023ad984fb88e01f2c4a12a30827a28c1c7.tar.bz2
ice-b6d77023ad984fb88e01f2c4a12a30827a28c1c7.tar.xz
ice-b6d77023ad984fb88e01f2c4a12a30827a28c1c7.zip
moved generic C++ stuff to Slice library
Diffstat (limited to 'cpp/src/Slice/GrammarUtil.h')
-rw-r--r--cpp/src/Slice/GrammarUtil.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/cpp/src/Slice/GrammarUtil.h b/cpp/src/Slice/GrammarUtil.h
new file mode 100644
index 00000000000..4641c6d49fc
--- /dev/null
+++ b/cpp/src/Slice/GrammarUtil.h
@@ -0,0 +1,126 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef SLICE_GRAMMER_UTIL_H
+#define SLICE_GRAMMER_UTIL_H
+
+#include <Slice/Parser.h>
+
+namespace Slice
+{
+
+class StringTok;
+class TypeStringListTok;
+class StringListTok;
+class BoolTok;
+class TypeListTok;
+class ClassListTok;
+class EnumeratorListTok;
+
+typedef ::IceUtil::Handle<StringTok> StringTokPtr;
+typedef ::IceUtil::Handle<TypeStringListTok> TypeStringListTokPtr;
+typedef ::IceUtil::Handle<StringListTok> StringListTokPtr;
+typedef ::IceUtil::Handle<BoolTok> BoolTokPtr;
+typedef ::IceUtil::Handle<TypeListTok> TypeListTokPtr;
+typedef ::IceUtil::Handle<ClassListTok> ClassListTokPtr;
+typedef ::IceUtil::Handle<EnumeratorListTok> EnumeratorListTokPtr;
+
+}
+
+namespace Slice
+{
+
+// ----------------------------------------------------------------------
+// StringTok
+// ----------------------------------------------------------------------
+
+class SLICE_API StringTok : public GrammerBase
+{
+public:
+
+ StringTok() { }
+ std::string v;
+};
+
+// ----------------------------------------------------------------------
+// TypeStringListTok
+// ----------------------------------------------------------------------
+
+class SLICE_API TypeStringListTok : public GrammerBase
+{
+public:
+
+ TypeStringListTok() { }
+ TypeStringList v;
+};
+
+// ----------------------------------------------------------------------
+// StringListTok
+// ----------------------------------------------------------------------
+
+class SLICE_API StringListTok : public GrammerBase
+{
+public:
+
+ StringListTok() { }
+ StringList v;
+};
+
+// ----------------------------------------------------------------------
+// BoolTok
+// ----------------------------------------------------------------------
+
+class SLICE_API BoolTok : public GrammerBase
+{
+public:
+
+ BoolTok() { }
+ bool v;
+};
+
+// ----------------------------------------------------------------------
+// TypeListTok
+// ----------------------------------------------------------------------
+
+class SLICE_API TypeListTok : public GrammerBase
+{
+public:
+
+ TypeListTok() { }
+ TypeList v;
+};
+
+// ----------------------------------------------------------------------
+// ClassListTok
+// ----------------------------------------------------------------------
+
+class SLICE_API ClassListTok : public GrammerBase
+{
+public:
+
+ ClassListTok() { }
+ ClassList v;
+};
+
+// ----------------------------------------------------------------------
+// EnumeratorListTok
+// ----------------------------------------------------------------------
+
+class SLICE_API EnumeratorListTok : public GrammerBase
+{
+public:
+
+ EnumeratorListTok() { }
+ EnumeratorList v;
+};
+
+}
+
+#endif