Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (27 sloc) 880 Bytes
// Copyright (C) 2015 Michael Biggs. See the COPYING file at the top-level
// directory of this distribution and at http://shok.io/code/copyright.html
#ifndef _statik_Root_h_
#define _statik_Root_h_
/* Special Rule for the Root node */
#include "List.h"
#include "ParseAction.h"
#include "ParseFunc.h"
#include "Rule.h"
#include "STree.h"
#include <memory>
#include <string>
namespace statik {
class ParseFunc_Root : public ParseFunc {
public:
ParseFunc_Root(const std::string& name);
virtual ~ParseFunc_Root() {}
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_Root(m_name));
}
private:
const std::string m_name;
};
std::auto_ptr<ParseFunc> MakeParseFunc_Root(const std::string& name);
}
#endif // _statik_Root_h_
You can’t perform that action at this time.