summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/lexer.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-10-09 12:08:51 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-10-09 12:08:51 +0000
commit8cf03bc5b6895568eb08be1415985a64793bb81c (patch)
tree814e95e1b0422362066fef389e8b03741e8478ad /src/runtime/c/pgf/lexer.h
parent20e4970ec19949da10b86facd3c6a5a4abb03acb (diff)
a major redesign in the C runtime. The parser and the linearizer now fully support BIND. The following things are still broken: parseval, word completion, handling 'pre', the robust mode
Diffstat (limited to 'src/runtime/c/pgf/lexer.h')
-rw-r--r--src/runtime/c/pgf/lexer.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/runtime/c/pgf/lexer.h b/src/runtime/c/pgf/lexer.h
deleted file mode 100644
index b55c07930..000000000
--- a/src/runtime/c/pgf/lexer.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef PGF_LEXER_H_
-#define PGF_LEXER_H_
-
-#include <gu/in.h>
-#include <pgf/expr.h>
-
-/// A single lexical token
-typedef GuString PgfToken;
-typedef GuSeq PgfTokens; // -> PgfToken
-
-typedef struct {
- prob_t prob;
- PgfCId cat;
- PgfToken tok;
-} PgfTokenProb;
-
-typedef struct {
- PgfToken (*read_token)();
- PgfToken tok;
-} PgfLexer;
-
-PgfLexer*
-pgf_new_simple_lexer(GuIn *in, GuPool *pool);
-
-PgfToken
-pgf_lexer_read_token(PgfLexer *lexer, GuExn* err);
-
-PgfToken
-pgf_lexer_current_token(PgfLexer *lexer);
-
-#endif // PGF_LEXER_H_