mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Revert "Move BinPAC, bifcl, af_packet, and gen_zam submodules into main zeek repo"
This commit is contained in:
parent
a10a70994e
commit
e64ec54172
146 changed files with 50 additions and 20635 deletions
|
@ -1,41 +0,0 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#ifndef pac_regex_h
|
||||
#define pac_regex_h
|
||||
|
||||
#include "pac_common.h"
|
||||
#include "pac_decl.h"
|
||||
|
||||
class RegExDecl;
|
||||
|
||||
class RegEx : public Object {
|
||||
public:
|
||||
RegEx(const string& str);
|
||||
~RegEx();
|
||||
|
||||
const string& str() const { return str_; }
|
||||
ID* matcher_id() const { return matcher_id_; }
|
||||
|
||||
private:
|
||||
string str_;
|
||||
ID* matcher_id_;
|
||||
RegExDecl* decl_;
|
||||
|
||||
public:
|
||||
static const char* kREMatcherType;
|
||||
static const char* kMatchPrefix;
|
||||
};
|
||||
|
||||
class RegExDecl : public Decl {
|
||||
public:
|
||||
RegExDecl(RegEx* regex);
|
||||
|
||||
void Prepare() override;
|
||||
void GenForwardDeclaration(Output* out_h) override;
|
||||
void GenCode(Output* out_h, Output* out_cc) override;
|
||||
|
||||
private:
|
||||
RegEx* regex_;
|
||||
};
|
||||
|
||||
#endif // pac_regex_h
|
Loading…
Add table
Add a link
Reference in a new issue