blob: e0e6b5de8e3fb7438481e52b7521c2afe3578095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* vm.h - Header file for BPEG virtual machine.
*/
#ifndef VM__H
#define VM__H
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include "types.h"
const char *opcode_name(enum VMOpcode o);
__attribute__((hot, nonnull))
match_t *match(grammar_t *g, file_t *f, const char *str, vm_op_t *op, unsigned int flags);
__attribute__((nonnull))
void destroy_match(match_t **m);
__attribute__((nonnull))
void print_pattern(vm_op_t *op);
__attribute__((nonnull))
void print_match(file_t *f, match_t *m);
#endif
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1
|