Skip to content
Snippets Groups Projects
Select Git revision
  • aa35399f3167eb6d7fee002f8832465f145e6569
  • master default protected
  • fix-words-ann
  • wccl-rules-migration
  • develop
5 results

debug.cpp

  • debug.cpp 634 B
    #include <libwccl/ops/functions/bool/predicates/debug.h>
    #include <libwccl/ops/formatters.h>
    
    namespace Wccl {
    
    DebugPrint::BaseRetValPtr DebugPrint::apply_internal(const FunExecContext& context) const
    {
    	const boost::shared_ptr<const Value>& v = expr_->apply_internal(context);
    	std::cerr << v->to_raw_string() << "\n";
    	return Predicate::True(context);
    }
    
    std::string DebugPrint::to_string(const Corpus2::Tagset& tagset) const
    {
    	return UnaryFunctionFormatter::to_string(tagset, *this, *expr_);
    }
    
    std::ostream& DebugPrint::write_to(std::ostream& os) const
    {
    	return os << raw_name() << "(" << *expr_ << ")";
    }
    
    } /* end ns Wccl */