summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_lex.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ddb/db_lex.h')
-rw-r--r--sys/ddb/db_lex.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/ddb/db_lex.h b/sys/ddb/db_lex.h
index 07955e9..8713a27 100644
--- a/sys/ddb/db_lex.h
+++ b/sys/ddb/db_lex.h
@@ -36,10 +36,12 @@
/*
* Lexical analyzer.
*/
-void db_flush_lex(void);
-int db_read_line(void);
-int db_read_token(void);
-void db_unread_token(int t);
+void db_flush_lex(void);
+char *db_get_line(void);
+void db_inject_line(const char *command);
+int db_read_line(void);
+int db_read_token(void);
+void db_unread_token(int t);
extern db_expr_t db_tok_number;
#define TOK_STRING_SIZE 120
@@ -66,5 +68,6 @@ extern char db_tok_string[TOK_STRING_SIZE];
#define tSHIFT_L 18
#define tSHIFT_R 19
#define tDOTDOT 20
+#define tSEMI 21
#endif /* !_DDB_DB_LEX_H_ */
OpenPOWER on IntegriCloud