4 typedef unsigned char text
;
6 typedef struct PSI_Token
{
12 typedef struct impl impl
;
13 typedef struct decl decl
;
15 typedef struct PSI_Lexer
{
27 text
*cur
, *tok
, *lim
, *eof
, *ctx
, *mrk
, buf
[BSIZE
];
30 PSI_Lexer
*PSI_LexerInit(PSI_Lexer
*L
, const char *filename
);
31 size_t PSI_LexerFill(PSI_Lexer
*L
, size_t n
);
32 token_t
PSI_LexerScan(PSI_Lexer
*L
);
33 void PSI_LexerDtor(PSI_Lexer
*L
);
34 void PSI_LexerFree(PSI_Lexer
**L
);
36 PSI_Token
*PSI_TokenAlloc(PSI_Lexer
*L
, token_t t
);