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

match.cpp

Blame
  • user avatar
    Adam Wardynski authored
    MatchVector, AnnotationMatch, TokenMatch are now MatchData
    MatchData is value_type of Match which now has get_value/set_value
    Match has also copy construction working properly now
    Default value for Match holds MatchVector so adding $m:_M var in grammar works as intended.
    a3897913
    History
    match.cpp 262 B
    #include <libwccl/values/match.h>
    #include <sstream>
    
    namespace Wccl {
    
    const char* Match::type_name = "Match";
    
    std::string Match::var_repr(const std::string &var_name)
    {
    	std::stringstream ss;
    	ss << "$m:" << var_name;
    	return ss.str();
    }
    
    } /* end ns Wccl */