Updating to reflect the latest work
[zilutils.git] / zilasm / parser.h
index ef4bee2a4e93c568dcb3b555f6c8c61f854b0ae8..2ed9ae7f0d6d9f840d549df7ccbb95527f911050 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * parser.h -- part of ZilUtils/ZilAsm
  *
- * Copyright (C) 2016 Jason Self <j@jxself.org>
+ * Copyright (C) 2016, 2019 Jason Self <j@jxself.org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  */
 
 #ifndef ZILASM_PARSER
 #define ZILASM_PARSER 1
 
-int parse_file(const char *filename);
 
-#endif  /* ifndef ZILASM_PARSER */
+struct Instruction
+{
+  Byte *pCodes;
+  int size;
+};
+
+void init_parser ();
+
+int parse_file (const char *filename);
+
+extern unsigned g_numberOfInstructions;
+
+#define MAX_NUMBER_OF_INSTRUCTIONS 65536
+extern ZMemblock (*g_codes[MAX_NUMBER_OF_INSTRUCTIONS]);
+
+#endif /* ifndef ZILASM_PARSER */