picrin/extlib/benz/include/picrin/read.h

32 lines
512 B
C

/**
* See Copyright Notice in picrin.h
*/
#ifndef PICRIN_READ_H
#define PICRIN_READ_H
#if defined(__cplusplus)
extern "C" {
#endif
typedef pic_value (*pic_reader_t)(pic_state *, struct pic_port *port, int c);
typedef struct {
enum pic_typecase {
PIC_CASE_DEFAULT,
PIC_CASE_FOLD
} typecase;
xhash labels;
pic_reader_t table[256];
pic_reader_t dispatch[256];
} pic_reader;
void pic_reader_init(pic_state *);
void pic_reader_destroy(pic_state *);
#if defined(__cplusplus)
}
#endif
#endif