mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Move binpac code into the main Zeek repository
This is based on commit 48f75b5f6415fe9d597e3e991cec635b1bc400dc from the binpac repository.
This commit is contained in:
parent
a2680d5eca
commit
ff26835976
112 changed files with 14586 additions and 8 deletions
37
tools/binpac/src/pac_withinput.h
Normal file
37
tools/binpac/src/pac_withinput.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef pac_withinput_h
|
||||
#define pac_withinput_h
|
||||
|
||||
#include "pac_datadep.h"
|
||||
#include "pac_decl.h"
|
||||
#include "pac_field.h"
|
||||
|
||||
class WithInputField : public Field, public Evaluatable {
|
||||
public:
|
||||
WithInputField(ID* id, Type* type, InputBuffer* input);
|
||||
~WithInputField() override;
|
||||
|
||||
InputBuffer* input() const { return input_; }
|
||||
|
||||
void Prepare(Env* env) override;
|
||||
|
||||
// void GenPubDecls(Output* out, Env* env);
|
||||
// void GenPrivDecls(Output* out, Env* env);
|
||||
|
||||
// void GenInitCode(Output* out, Env* env);
|
||||
// void GenCleanUpCode(Output* out, Env* env);
|
||||
|
||||
void GenParseCode(Output* out, Env* env);
|
||||
|
||||
// Instantiate the Evaluatable interface
|
||||
void GenEval(Output* out, Env* env) override;
|
||||
|
||||
bool RequiresAnalyzerContext() const override;
|
||||
|
||||
protected:
|
||||
bool DoTraverse(DataDepVisitor* visitor) override;
|
||||
|
||||
protected:
|
||||
InputBuffer* input_;
|
||||
};
|
||||
|
||||
#endif // pac_withinput_h
|
Loading…
Add table
Add a link
Reference in a new issue