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