mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 00:02:50 -06:00
libpgf: added simple lexer
This commit is contained in:
15
src/runtime/c/pgf/lexer.h
Normal file
15
src/runtime/c/pgf/lexer.h
Normal 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_
|
||||
Reference in New Issue
Block a user