]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
Removed primitive AST tree generator ... I'm planning a rewrite as we speak.
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index e8e3df055fee3c2ea6166f4a907a8bf2ba29a548..d201c7885da237327aa51c87449acf9703d150cd 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -76,10 +76,11 @@ struct lex_file {
 #define LEX_STRLIT     1130
 #define LEX_IDENT      1131
 
-int              lex_token(struct lex_file *);
-void             lex_reset(struct lex_file *);
-void             lex_close(struct lex_file *);
-struct lex_file *lex_open (FILE *);
+int              lex_token  (struct lex_file *);
+void             lex_reset  (struct lex_file *);
+void             lex_close  (struct lex_file *);
+struct lex_file *lex_include(struct lex_file *, char *);
+struct lex_file *lex_open   (FILE *);
 
 //===================================================================
 //========================== error.c ================================
@@ -94,11 +95,7 @@ int error(int, const char *, ...);
 //===================================================================
 //========================== parse.c ================================
 //===================================================================
-int parse_tree(struct lex_file *);
-struct parsenode {
-       struct parsenode *next;
-       int               type; /* some token */
-};
+int parse_gen(struct lex_file *);
 
 //===================================================================
 //========================== typedef.c ==============================
@@ -260,6 +257,5 @@ enum {
        INSTR_BITOR
 };
 
-
 void code_write();
 #endif