blob: b2c7572d3269269cc12f11f7d5d85c5d6ccf6030 (
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
26
27
28
29
30
|
#pragma once
#include <stdint.h>
#include <stdbool.h>
struct ragel_mem {
const char *data, *end;
bool binary;
};
struct ragel {
struct ragel_mem input;
uint64_t lineno;
const char *p, *pe, *eof;
const char *cl;
const char *name;
bool error;
};
__attribute__((format(printf, 2, 3))) void
ragel_throw_error(struct ragel *ragel, const char *fmt, ...);
void
ragel_set_name(struct ragel *ragel, const char *name);
void
ragel_advance_line(struct ragel *ragel);
void
ragel_feed_input(struct ragel *ragel, const bool eof, const struct ragel_mem *input);
|