// ********************************************************************** // // Copyright (c) 2003 // ZeroC, Inc. // Billerica, MA, USA // // All Rights Reserved. // // Ice is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License version 2 as published by // the Free Software Foundation. // // ********************************************************************** #ifndef SLICE_GRAMMER_UTIL_H #define SLICE_GRAMMER_UTIL_H #include #include namespace Slice { class StringTok; class StringListTok; class TypeStringTok; class TypeStringListTok; class BoolTok; class IntegerTok; class FloatingTok; class ExceptionListTok; class ClassListTok; class EnumeratorListTok; class SyntaxTreeBaseStringTok; typedef ::IceUtil::Handle StringTokPtr; typedef ::IceUtil::Handle StringListTokPtr; typedef ::IceUtil::Handle TypeStringTokPtr; typedef ::IceUtil::Handle TypeStringListTokPtr; typedef ::IceUtil::Handle BoolTokPtr; typedef ::IceUtil::Handle IntegerTokPtr; typedef ::IceUtil::Handle FloatingTokPtr; typedef ::IceUtil::Handle ExceptionListTokPtr; typedef ::IceUtil::Handle ClassListTokPtr; typedef ::IceUtil::Handle EnumeratorListTokPtr; typedef ::IceUtil::Handle SyntaxTreeBaseStringTokPtr; // ---------------------------------------------------------------------- // StringTok // ---------------------------------------------------------------------- class SLICE_API StringTok : public GrammarBase { public: StringTok() { } std::string v; }; // ---------------------------------------------------------------------- // StringListTok // ---------------------------------------------------------------------- class SLICE_API StringListTok : public GrammarBase { public: StringListTok() { } StringList v; }; // ---------------------------------------------------------------------- // TypeStringTok // ---------------------------------------------------------------------- class SLICE_API TypeStringTok : public GrammarBase { public: TypeStringTok() { } TypeString v; }; // ---------------------------------------------------------------------- // TypeStringListTok // ---------------------------------------------------------------------- class SLICE_API TypeStringListTok : public GrammarBase { public: TypeStringListTok() { } TypeStringList v; }; // ---------------------------------------------------------------------- // IntegerTok // ---------------------------------------------------------------------- class SLICE_API IntegerTok : public GrammarBase { public: IntegerTok() { } IceUtil::Int64 v; }; // ---------------------------------------------------------------------- // FloatingTok // ---------------------------------------------------------------------- class SLICE_API FloatingTok : public GrammarBase { public: FloatingTok() { } Double v; }; // ---------------------------------------------------------------------- // BoolTok // ---------------------------------------------------------------------- class SLICE_API BoolTok : public GrammarBase { public: BoolTok() { } bool v; }; // ---------------------------------------------------------------------- // ExceptionListTok // ---------------------------------------------------------------------- class SLICE_API ExceptionListTok : public GrammarBase { public: ExceptionListTok() { } ExceptionList v; }; // ---------------------------------------------------------------------- // ClassListTok // ---------------------------------------------------------------------- class SLICE_API ClassListTok : public GrammarBase { public: ClassListTok() { } ClassList v; }; // ---------------------------------------------------------------------- // EnumeratorListTok // ---------------------------------------------------------------------- class SLICE_API EnumeratorListTok : public GrammarBase { public: EnumeratorListTok() { } EnumeratorList v; }; // ---------------------------------------------------------------------- // SyntaxTreeBaseStringTok // ---------------------------------------------------------------------- class SLICE_API SyntaxTreeBaseStringTok : public GrammarBase { public: SyntaxTreeBaseStringTok() { } SyntaxTreeBaseString v; }; } #endif