Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (30 sloc) 1020 Bytes
// Copyright (C) 2014 Michael Biggs. See the COPYING file at the top-level
// directory of this distribution and at
#ifndef _statik_Regexp_h_
#define _statik_Regexp_h_
/* Regexp rule */
#include "List.h"
#include "ParseAction.h"
#include "ParseFunc.h"
#include "Rule.h"
#include "STree.h"
#include <boost/regex.hpp>
#include <memory>
#include <string>
namespace statik {
std::auto_ptr<Rule> REGEXP(const std::string& name,
const boost::regex& regex);
class ParseFunc_Regexp : public ParseFunc {
ParseFunc_Regexp(const boost::regex& regex);
virtual ~ParseFunc_Regexp() {}
virtual void operator() (ParseAction::Action action, const List& inode, const STree* initiator);
virtual std::auto_ptr<ParseFunc> Clone() {
return std::auto_ptr<ParseFunc>(new ParseFunc_Regexp(m_regex));
const boost::regex m_regex;
std::auto_ptr<ParseFunc> MakeParseFunc_Regexp(const boost::regex& regex);
#endif // _statik_Regexp_h_
You can’t perform that action at this time.