#ifndef AST_LEAF_LITERAL_H #define AST_LEAF_LITERAL_H #include "astnode.h" #include "variable.h" class AstLeafLiteral : public AstNode { friend Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l ); public: AstLeafLiteral( const Variable &v ); AstLeafLiteral( AstNode eType, const Variable &v ); virtual ~AstLeafLiteral(); const Variable &getValue() const { return vValue; } private: Variable vValue; }; Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l ); #endif