flush
[m6w6/ext-psi] / src / compiler.h
1 #ifndef _PSI_COMPILER_H
2 #define _PSI_COMPILER_H
3
4 #include "validator.h"
5
6 typedef struct PSI_Compiler {
7 decl_typedefs *defs;
8 decls *decls;
9 impls *impls;
10 char *lib;
11 char *fn;
12 void *context;
13 } PSI_Compiler;
14
15 PSI_Compiler *PSI_CompilerInit(PSI_Compiler *C, PSI_Validator *V, void *context);
16 void PSI_CompilerDtor(PSI_Compiler *C);
17 void PSI_CompilerFree(PSI_Compiler **C);
18 zend_function_entry *PSI_CompilerCompile(PSI_Compiler *C);
19
20 #endif