Annotation of parser3/src/include/pa_vunknown.h, revision 1.1

1.1     ! paf         1: /*
        !             2:   $Id: pa_vstring.h,v 1.3 2001/02/22 16:21:49 paf Exp $
        !             3: */
        !             4: 
        !             5: #ifndef PA_VUNKNOWN_H
        !             6: #define PA_VUNKNOWN_H
        !             7: 
        !             8: #include "pa_value.h"
        !             9: 
        !            10: class VUnknown : public Value {
        !            11: public: // Value
        !            12: 
        !            13:        // all: for error reporting after fail(), etc
        !            14:        const char *type() const { return "Unknown"; }
        !            15: 
        !            16:        // unknown: ""
        !            17:        virtual String *get_string() { return ∅ }
        !            18: 
        !            19: public: // usage
        !            20: 
        !            21:        VUnknown(Pool& apool) : Value(apool),
        !            22:                empty(apool) {
        !            23:        }
        !            24: 
        !            25: private:
        !            26:        String empty;
        !            27: 
        !            28: };
        !            29: 
        !            30: #endif

E-mail: