X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=idl%2Fold%2Flexer.h;fp=idl%2Fold%2Flexer.h;h=1e955a7ee3268f5c46b6b2bbd82ab911ca0eb684;hp=0000000000000000000000000000000000000000;hb=69008ba2a7733358974c8985caa2e5bcb1182fe1;hpb=c6d07b29eac45a9dc6f121b6a636ff32bc7609a3 diff --git a/idl/old/lexer.h b/idl/old/lexer.h new file mode 100644 index 0000000..1e955a7 --- /dev/null +++ b/idl/old/lexer.h @@ -0,0 +1,17 @@ +#ifndef _PSI_LEXER_H +#define _PSI_LEXER_H + +#include "types.h" + +#define BSIZE 256 + + +PSI_Lexer *PSI_LexerInit(PSI_Lexer *L, const char *filename); +size_t PSI_LexerFill(PSI_Lexer *L, size_t n); +token_t PSI_LexerScan(PSI_Lexer *L); +void PSI_LexerDtor(PSI_Lexer *L); +void PSI_LexerFree(PSI_Lexer **L); + +PSI_Token *PSI_TokenAlloc(PSI_Lexer *L, token_t t); + +#endif