repo.or.cz
/
hvf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cp/include: a generic parser state control block
[hvf.git]
/
cp
/
include
/
parser.h
blob
95f9c0910d894253f088379941375492fb33707e
1
#ifndef __PARSER_H
2
#define __PARSER_H
3
4
struct
parser
{
5
/* memory related function for stack management */
6
void
*(*
malloc
)(
size_t
);
7
void
*(*
realloc
)(
void
*,
size_t
);
8
void
(*
free
)(
void
*);
9
10
void
(*
error
)(
struct
parser
*,
char
*);
11
12
int
(*
lex
)(
void
*,
void
*);
13
void
*
lex_data
;
14
};
15
16
#endif