/*
* parser.h -- part of ZilUtils/ZilAsm
*
- * Copyright (C) 2016, 2019 Jason Self <j@jxself.org>
+ * Copyright (C) 2016, 2019, 2020 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
void init_parser ();
-int parse_file (const char *filename);
+int parse_file();// const char *filename);
-extern unsigned g_numberOfInstructions;
+extern unsigned g_number_of_instructions;
#define MAX_NUMBER_OF_INSTRUCTIONS 65536
extern ZMemblock (*g_codes[MAX_NUMBER_OF_INSTRUCTIONS]);
+struct Parsing_Context
+{
+ string current_directory;
+ string current_file_name;
+};
+
+extern stack<Parsing_Context> g_parsing_contexts;
+extern unsigned g_currentLineNumber;
+extern bool g_haveErrors;
+
#endif /* ifndef ZILASM_PARSER */