Exemplo n.º 1
0
 boost::shared_ptr<IFunction> operator()(const Reference& R)const
 {
     if( R.IsNull() )
         throw std::logic_error("Calling a nullreference");
     else
         throw std::logic_error("Expected function; Is table");
 }
Exemplo n.º 2
0
    std::string operator()(const Reference& ref)const
    {
        if( ref.IsNull() )
            return "Nullreference";

        return "Reference";
    }
Exemplo n.º 3
0
 NumberToken operator()(const Reference& R)const
 {
     if( R.IsNull() )
         throw NullReferenceException("Dereferencing a nullreference");
     else
         throw std::logic_error("Table is not convertible to a number");
 }
Exemplo n.º 4
0
 std::string operator()(const Reference& ref)const
 {
     if( ref.IsNull() )
         throw NullReferenceException("Dereferencing a nullreference");
     else
         return "Reference -> table";
 }