2020-09-11 01:28:06 -07:00
|
|
|
/*
|
|
|
|
* compiler.h - Header file for BPEG compiler.
|
|
|
|
*/
|
|
|
|
#ifndef COMPILER__H
|
|
|
|
#define COMPILER__H
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "types.h"
|
2020-09-16 19:35:43 -07:00
|
|
|
#include "file_loader.h"
|
2020-09-11 01:28:06 -07:00
|
|
|
|
2020-09-16 19:35:43 -07:00
|
|
|
vm_op_t *bpeg_simplepattern(file_t *f, const char *str);
|
|
|
|
vm_op_t *bpeg_stringpattern(file_t *f, const char *str);
|
2020-09-11 01:28:06 -07:00
|
|
|
vm_op_t *bpeg_replacement(vm_op_t *pat, const char *replacement);
|
2020-09-16 19:35:43 -07:00
|
|
|
vm_op_t *bpeg_pattern(file_t *f, const char *str);
|
2020-09-11 01:28:06 -07:00
|
|
|
|
|
|
|
#endif
|
2020-09-11 01:38:44 -07:00
|
|
|
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1
|