libpgf: added simple lexer

This commit is contained in:
kr.angelov
2012-03-09 09:14:44 +00:00
parent f5737e8222
commit c1b2246fa9
5 changed files with 138 additions and 10 deletions

15
src/runtime/c/pgf/lexer.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef PGF_LEXER_H_
#define PGF_LEXER_H_
#include <gu/read.h>
#include <pgf/data.h>
typedef struct PgfLexer PgfLexer;
PgfLexer*
pgf_new_lexer(GuReader *rdr, GuPool *pool);
PgfToken
pgf_lexer_next_token(PgfLexer *lexer, GuExn* err, GuPool *pool);
#endif // PGF_LEXER_H_