2021-01-12 21:04:43 -08:00
|
|
|
//
|
|
|
|
// compiler.h - Header file for BP compiler.
|
|
|
|
//
|
2020-09-11 01:28:06 -07:00
|
|
|
#ifndef COMPILER__H
|
|
|
|
#define COMPILER__H
|
|
|
|
|
2020-09-16 19:35:43 -07:00
|
|
|
#include "file_loader.h"
|
2020-12-14 22:13:47 -08:00
|
|
|
#include "types.h"
|
2020-09-11 01:28:06 -07:00
|
|
|
|
2021-01-13 01:48:36 -08:00
|
|
|
__attribute__((nonnull))
|
2021-01-15 18:57:09 -08:00
|
|
|
pat_t *new_pat(file_t *f, const char *start, enum pattype_e type);
|
2020-09-28 21:30:43 -07:00
|
|
|
__attribute__((nonnull(1,2)))
|
2021-01-15 18:38:06 -08:00
|
|
|
pat_t *bp_simplepattern(file_t *f, const char *str);
|
2020-09-28 21:30:43 -07:00
|
|
|
__attribute__((nonnull(1,2)))
|
2021-01-15 18:38:06 -08:00
|
|
|
pat_t *bp_stringpattern(file_t *f, const char *str);
|
2020-09-23 22:37:28 -07:00
|
|
|
__attribute__((nonnull(1,2)))
|
2021-01-15 19:21:41 -08:00
|
|
|
pat_t *bp_replacement(file_t *f, pat_t *replacepat, const char *replacement);
|
2021-01-15 12:40:19 -08:00
|
|
|
__attribute__((nonnull))
|
2021-01-15 18:38:06 -08:00
|
|
|
pat_t *bp_pattern(file_t *f, const char *str);
|
2021-01-15 12:40:19 -08:00
|
|
|
__attribute__((nonnull))
|
|
|
|
def_t *bp_definition(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
|